Merge pull request #1451 from croneter/fix-companion

Fix PKC not showing up as a casting target in some cases
This commit is contained in:
croneter 2021-04-17 14:19:42 +02:00 committed by GitHub
commit f634554699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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