Python3 fix (parsing of headers)

This commit is contained in:
Miroslav Stampar
2021-01-20 16:29:52 +01:00
parent b2c8ba10cd
commit 4a12493d85
4 changed files with 4 additions and 4 deletions

View File

@@ -98,6 +98,7 @@ class ReqHandler(BaseHTTPRequestHandler):
if "<script>" in unquote_plus(query):
self.send_response(INTERNAL_SERVER_ERROR)
self.send_header("X-Powered-By", "Express")
self.send_header("Connection", "close")
self.end_headers()
self.wfile.write("CLOUDFLARE_ERROR_500S_BOX".encode(UNICODE_ENCODING))