From 68ffe9928620d3e5e3b96152ed4d37da90f6a89b Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 22 Sep 2016 12:27:53 +0200 Subject: 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. --- lib/nickserver/hkp/source.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3