projects
/
quix0rs-apt-p2p.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be87030
)
Return 404's for hashes that aren't found.
author
Cameron Dale
<camrdale@gmail.com>
Fri, 18 Apr 2008 05:13:17 +0000
(22:13 -0700)
committer
Cameron Dale
<camrdale@gmail.com>
Fri, 18 Apr 2008 05:13:17 +0000
(22:13 -0700)
apt_p2p/HTTPServer.py
patch
|
blob
|
history
diff --git
a/apt_p2p/HTTPServer.py
b/apt_p2p/HTTPServer.py
index da582fc350d5fb61218d7b7971374adaa5f91390..fbf4c2b8f050f8cd088774847a30940ab69e4058 100644
(file)
--- 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