Show More
@@ -125,8 +125,9 b' class _httprequesthandler(httpservermod.' | |||
|
125 | 125 | # Ensure the slicing of path below is valid |
|
126 | 126 | if (path != self.server.prefix |
|
127 | 127 | and not path.startswith(self.server.prefix + b'/')): |
|
128 |
self._start_response(common.statusmessage(404), |
|
|
129 | self._write("Not Found") | |
|
128 | self._start_response(pycompat.strurl(common.statusmessage(404)), | |
|
129 | []) | |
|
130 | self._write(b"Not Found") | |
|
130 | 131 | self._done() |
|
131 | 132 | return |
|
132 | 133 |
General Comments 0
You need to be logged in to leave comments.
Login now