Entropy/EquoInterface:

- improve HTTP User-Agent information transmitted


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1709 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-04-11 23:51:34 +00:00
parent 702d23225a
commit 6ea70ee627
+7 -1
View File
@@ -6110,7 +6110,13 @@ class urlFetcher:
self.entropyTools = entropyTools
self.socket = socket
self.progress = None
self.user_agent = "Entropy/1.0 (compatible; Entropy; Linux)"
self.user_agent = "Entropy/%s (compatible; %s; %s %s %s)" % (
etpConst['entropyversion'],
os.path.basename(self.url),
os.uname()[0],
os.uname()[4],
os.uname()[2],
)
self.extra_header_data = {}
# resume support