diff options
author | Azul <azul@riseup.net> | 2016-09-22 12:27:53 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-09-22 12:27:53 +0200 |
commit | 68ffe9928620d3e5e3b96152ed4d37da90f6a89b (patch) | |
tree | 58b0f80b545987d5fc7f3dfdd4a3c1563cbc216e | |
parent | 1202e3b03c3bb88cd3a63dae3866167564f1d25d (diff) |
return nil on 404 in hkp source
This way the other RequestHandlers can give it a try.
If none handles it we'll get a 404 anyway. But maybe there's
been an exception before so a 502 should be send.
-rw-r--r-- | lib/nickserver/hkp/source.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nickserver/hkp/source.rb b/lib/nickserver/hkp/source.rb index e104aa8..82c94a0 100644 --- a/lib/nickserver/hkp/source.rb +++ b/lib/nickserver/hkp/source.rb @@ -19,7 +19,7 @@ module Nickserver; module Hkp if status == 200 best = pick_best_key(response) get_key_by_fingerprint(best.keyid, nick) - else + elsif status != 404 # 404 means no key found and we proceed Nickserver::Response.new(status, response) end end |