aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/pathoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'libpathod/pathoc.py')
-rw-r--r--libpathod/pathoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpathod/pathoc.py b/libpathod/pathoc.py
index 2dcb6082..4bfe7c7d 100644
--- a/libpathod/pathoc.py
+++ b/libpathod/pathoc.py
@@ -410,7 +410,7 @@ class Pathoc(tcp.TCPClient):
req = language.serve(r, self.wfile, self.settings)
self.wfile.flush()
- resp = self.protocol.read_response(self.rfile, treq(method=req["method"]))
+ resp = self.protocol.read_response(self.rfile, treq(method=req["method"].encode()))
resp.sslinfo = self.sslinfo
except HttpException as v:
lg("Invalid server response: %s" % v)