Mark the response as sent in _send_bytes
This commit is contained in:
1 parent
ae69171f05
commit
e10e76cf4e
1 file changed
+1
@@ -339,6 +339,7 @@ class SkuldHandler(BaseHTTPRequestHandler):
|
|||||||
self.end_headers()
|
self.end_headers()
|
||||||
if self.command != "HEAD":
|
if self.command != "HEAD":
|
||||||
self.wfile.write(data)
|
self.wfile.write(data)
|
||||||
|
self._response_sent = True
|
||||||
|
|
||||||
def _redirect(self, location):
|
def _redirect(self, location):
|
||||||
self.send_response(302)
|
self.send_response(302)
|
||||||
|
|||||||
Reference in new issue
Block a user