From 0dddcf50a6ab466c47c600b2eed1f7b6de6e1d6c Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 31 Aug 2011 20:16:07 +0200 Subject: fixes new debug reports, bad header detection --- module/network/HTTPRequest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/network') 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 -- cgit v1.2.3