From: Cameron Dale Date: Fri, 18 Apr 2008 05:13:17 +0000 (-0700) Subject: Return 404's for hashes that aren't found. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6b98606e824080841b3cfd1e6d6c72ab3b17c10c;p=quix0rs-apt-p2p.git Return 404's for hashes that aren't found. --- diff --git a/apt_p2p/HTTPServer.py b/apt_p2p/HTTPServer.py index da582fc..fbf4c2b 100644 --- a/apt_p2p/HTTPServer.py +++ b/apt_p2p/HTTPServer.py @@ -279,6 +279,7 @@ class TopLevel(resource.Resource): return PiecesUploader(bencode({'t': files[0]['pieces']}), 'application/x-bencoded'), () else: log.msg('Hash could not be found in database: %r' % hash) + return None, () if len(name) > 1: # It's a request from apt