Show More
@@ -127,6 +127,13 b' class _httprequesthandler(httpservermod.' | |||
|
127 | 127 | and not path.startswith(self.server.prefix + b'/')): |
|
128 | 128 | self._start_response(pycompat.strurl(common.statusmessage(404)), |
|
129 | 129 | []) |
|
130 | if self.command == 'POST': | |
|
131 | # Paranoia: tell the client we're going to close the | |
|
132 | # socket so they don't try and reuse a socket that | |
|
133 | # might have a POST body waiting to confuse us. We do | |
|
134 | # this by directly munging self.saved_headers because | |
|
135 | # self._start_response ignores Connection headers. | |
|
136 | self.saved_headers = [(r'Connection', r'Close')] | |
|
130 | 137 | self._write(b"Not Found") |
|
131 | 138 | self._done() |
|
132 | 139 | return |
General Comments 0
You need to be logged in to leave comments.
Login now