Add property tracking to downloads from peers.
[quix0rs-apt-p2p.git] / apt_dht / HTTPServer.py
index 53755478d20f9e7f737003d824e06053b963060e..b81282cf2c1865f1884115486e19c1efceca33ea 100644 (file)
@@ -140,7 +140,7 @@ class TopLevel(resource.Resource):
                     return FileUploader(files[0]['path'].path), ()
                 else:
                     log.msg('Sending torrent string %s to %s' % (b2a_hex(hash), request.remoteAddr))
-                    return static.Data(bencode({'t': files[0]['pieces']}), 'application/bencoded'), ()
+                    return static.Data(bencode({'t': files[0]['pieces']}), 'application/x-bencoded'), ()
             else:
                 log.msg('Hash could not be found in database: %s' % hash)