fix: TypeError: a bytes-like object is required, not 'str'

This commit is contained in:
jaehong park 2020-03-22 03:31:34 +09:00
parent 5eaf3ec0fe
commit ad7c1db49a
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class handler_class(BaseHTTPRequestHandler):
def do_GET(self): def do_GET(self):
self.send_response(200) self.send_response(200)
self.end_headers() self.end_headers()
self.wfile.write("OK MON GARS") self.wfile.write(b"OK MON GARS")
# create the object # create the object
u = miniupnpc.UPnP() u = miniupnpc.UPnP()