From ad7c1db49accb1a807c71187d5f485a33270f738 Mon Sep 17 00:00:00 2001 From: jaehong park Date: Sun, 22 Mar 2020 03:31:34 +0900 Subject: [PATCH] fix: TypeError: a bytes-like object is required, not 'str' --- miniupnpc/testupnpigd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniupnpc/testupnpigd.py b/miniupnpc/testupnpigd.py index 33019bd..b44afc6 100755 --- a/miniupnpc/testupnpigd.py +++ b/miniupnpc/testupnpigd.py @@ -29,7 +29,7 @@ class handler_class(BaseHTTPRequestHandler): def do_GET(self): self.send_response(200) self.end_headers() - self.wfile.write("OK MON GARS") + self.wfile.write(b"OK MON GARS") # create the object u = miniupnpc.UPnP()