summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-08-08 20:30:13 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-08-08 20:30:13 +0200
commita716a1e74c100df534d1c21f92afe1c752e71aa0 (patch)
treeaaddf3647d4b6b0d65d247aa8e86f65fb3b7d663 /module/network
parentonly one chunk for uploaded.to (diff)
downloadpyload-a716a1e74c100df534d1c21f92afe1c752e71aa0.tar.xz
pyLoad 0.4.7v0.4.7
Diffstat (limited to 'module/network')
-rw-r--r--module/network/HTTPRequest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py
index a966414ee..68626a7d0 100644
--- a/module/network/HTTPRequest.py
+++ b/module/network/HTTPRequest.py
@@ -76,7 +76,7 @@ class HTTPRequest():
#self.c.setopt(pycurl.VERBOSE, 1)
- self.c.setopt(pycurl.USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en; rv:1.9.2.10) Gecko/20100916 Firefox/3.6.10")
+ self.c.setopt(pycurl.USERAGENT, "Mozilla/5.0 (Windows NT 6.1; Win64; x64;en; rv:5.0) Gecko/20110619 Firefox/5.0")
if pycurl.version_info()[7]:
self.c.setopt(pycurl.ENCODING, "gzip, deflate")
self.c.setopt(pycurl.HTTPHEADER, ["Accept: */*",
@@ -204,7 +204,7 @@ class HTTPRequest():
def getResponse(self):
""" retrieve response from string io """
- if not self.rep: return None
+ if self.rep is None: return ""
value = self.rep.getvalue()
self.rep.close()
self.rep = StringIO()