diff options
author | 2015-04-20 22:56:34 +0200 | |
---|---|---|
committer | 2015-04-20 23:02:08 +0200 | |
commit | 892b7cbd4981b764bed30b2ccc5ca73d791c39f2 (patch) | |
tree | 1f5f142ad7e21de9e88f0c15957bbc7e03a9d1ff /pyload/network/HTTPRequest.py | |
parent | Spare code cosmetics (8) (diff) | |
download | pyload-892b7cbd4981b764bed30b2ccc5ca73d791c39f2.tar.xz |
Spare code cosmetics (9)
Diffstat (limited to 'pyload/network/HTTPRequest.py')
-rw-r--r-- | pyload/network/HTTPRequest.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pyload/network/HTTPRequest.py b/pyload/network/HTTPRequest.py index 1c645f898..92ce6ec4b 100644 --- a/pyload/network/HTTPRequest.py +++ b/pyload/network/HTTPRequest.py @@ -41,16 +41,16 @@ class HTTPRequest(object): self.c = pycurl.Curl() self.rep = StringIO() - self.cj = cookies # cookiejar + self.cj = cookies #: cookiejar self.lastURL = None self.lastEffectiveURL = None self.abort = False - self.code = 0 # last http code + self.code = 0 #: last http code self.header = "" - self.headers = [] # temporary request header + self.headers = [] #: temporary request header self.initHandle() self.setInterface(options) @@ -158,7 +158,7 @@ class HTTPRequest(object): self.c.setopt(pycurl.POST, 1) if not multipart: if type(post) == unicode: - post = str(post) # unicode not allowed + post = str(post) #: unicode not allowed elif type(post) == str: pass else: @@ -250,7 +250,7 @@ class HTTPRequest(object): def decodeResponse(self, rep): """ decode with correct encoding, relies on header """ header = self.header.splitlines() - encoding = "utf8" # default encoding + encoding = "utf8" #: default encoding for line in header: line = line.lower().replace(" ", "") |