mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont force the handler to set a status code
This commit is contained in:
parent
0b1084a7b8
commit
4495368d9e
@ -508,7 +508,7 @@ class HTTPPair(object):
|
||||
# Read and discard any remaining body from the HTTP request
|
||||
self.input_reader.read()
|
||||
if self.status_code is None:
|
||||
raise Exception('Request handler did not set status_code')
|
||||
self.status_code = httplib.OK
|
||||
|
||||
try:
|
||||
self.status_code, output = finalize_output(output, self.inheaders, self.outheaders, self.status_code, self.response_protocol is HTTP1, self.method)
|
||||
|
Loading…
x
Reference in New Issue
Block a user