fix: TypeError: a bytes-like object is required, not 'str'
This commit is contained in:
parent
5eaf3ec0fe
commit
ad7c1db49a
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue