Fix PKC not showing up as a casting target in some cases

This commit is contained in:
croneter 2021-04-17 14:01:56 +02:00
parent 18599e2e81
commit 281fe05158

View file

@ -92,7 +92,7 @@ class MyHandler(BaseHTTPRequestHandler):
self.send_header('Content-Length', len(body)) self.send_header('Content-Length', len(body))
self.send_header('Connection', "close") self.send_header('Connection', "close")
self.end_headers() self.end_headers()
self.wfile.write(body) self.wfile.write(body.encode('utf-8'))
self.wfile.close() self.wfile.close()
except Exception: except Exception:
pass pass