diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-31 20:16:07 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-31 20:16:07 +0200 |
commit | 0dddcf50a6ab466c47c600b2eed1f7b6de6e1d6c (patch) | |
tree | 8d2440fc0bb262b4f69dac7637f57bffd9908fec /module/network/HTTPRequest.py | |
parent | closed #357, #384 (diff) | |
download | pyload-0dddcf50a6ab466c47c600b2eed1f7b6de6e1d6c.tar.xz |
fixes new debug reports, bad header detection
Diffstat (limited to 'module/network/HTTPRequest.py')
-rw-r--r-- | module/network/HTTPRequest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py index 68626a7d0..88f75c828 100644 --- a/module/network/HTTPRequest.py +++ b/module/network/HTTPRequest.py @@ -30,7 +30,7 @@ def myquote(url): return quote(url, safe="%/:=&?~#+!$,;'@()*[]") class BadHeader(Exception): - def __init__(self, code, content): + def __init__(self, code, content=""): Exception.__init__(self, "Bad server response: %s"% code) self.code = code self.content = content |