Merge pull request #425 from iworkist/master

fix: TypeError: a bytes-like object is required, not 'str'
This commit is contained in:
Thomas BERNARD 2020-04-06 12:03:28 +02:00 committed by GitHub
commit 14f7e1c66a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()