also show "bad" data in HTTPParsingException when a message is provided
This commit is contained in:
parent
d5b9da7659
commit
cd0d39ee5e
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class HTTPTimeoutException(HTTPException):
|
|||
class HTTPParsingException(HTTPException):
|
||||
def __init__(self, message: str, data: str):
|
||||
Exception.__init__(self,
|
||||
message or ("HTTP parsing failed:\n%s" % data))
|
||||
"%s\n%s" % ((message or "HTTP parsing failed"), data))
|
||||
class HTTPWrongContentTypeException(HTTPException):
|
||||
def __init__(self, message: str=None):
|
||||
Exception.__init__(self,
|
||||
|
|
Loading…
Reference in a new issue