]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - apt_dht/HTTPDownloader.py
Rename project to apt-p2p.
[quix0rs-apt-p2p.git] / apt_dht / HTTPDownloader.py
index 49bab65759ace1773447b2f48d613988f9b55cfa..eb369326b7f309e40c22bc39485fe8ae1fc6c671 100644 (file)
@@ -15,7 +15,7 @@ from twisted.web2 import version as web2_version
 from twisted.trial import unittest
 from zope.interface import implements
 
-from apt_dht_conf import version
+from apt_p2p_conf import version
 
 class Peer(ClientFactory):
     """A manager for all HTTP requests to a single peer.
@@ -158,7 +158,7 @@ class Peer(ClientFactory):
         """Get the common HTTP headers for all requests."""
         headers = http_headers.Headers()
         headers.setHeader('Host', self.host)
-        headers.setHeader('User-Agent', 'apt-dht/%s (twisted/%s twisted.web2/%s)' % 
+        headers.setHeader('User-Agent', 'apt-p2p/%s (twisted/%s twisted.web2/%s)' % 
                           (version.short(), twisted_version.short(), web2_version.short()))
         return headers