diff options
author | blidce <benhong_li@yahoo.com> | 2019-11-25 16:03:32 -0500 |
---|---|---|
committer | Chris Dent <cdent@anticdent.org> | 2019-11-25 21:03:32 +0000 |
commit | eff33e19a0ec402379a150b3fdcc099e9f666c02 (patch) | |
tree | 45c0b3b14111aeb350b83d215545ad1be7b56fa6 | |
parent | 6d7526982e00fc49634503123fbb8f7a95a678a4 (diff) | |
download | paste-git-eff33e19a0ec402379a150b3fdcc099e9f666c02.tar.gz |
socket write expect bytes instead of str (#38)
-rwxr-xr-x | paste/httpserver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/httpserver.py b/paste/httpserver.py index 7c0a0af..e8d512f 100755 --- a/paste/httpserver.py +++ b/paste/httpserver.py @@ -82,7 +82,7 @@ class ContinueHook(object): setattr(self, attr, getattr(self, '_ContinueFile_' + attr)) def _ContinueFile_send(self): - self._ContinueFile_write("HTTP/1.1 100 Continue\r\n\r\n") + self._ContinueFile_write("HTTP/1.1 100 Continue\r\n\r\n".encode('utf-8')) rfile = self._ContinueFile_rfile for attr in ('read', 'readline', 'readlines'): if hasattr(rfile, attr): |