Show More
@@ -205,12 +205,12 b' class _httprequesthandler(httpservermod.' | |||||
205 | self._chunked = False |
|
205 | self._chunked = False | |
206 | for h in self.saved_headers: |
|
206 | for h in self.saved_headers: | |
207 | self.send_header(*h) |
|
207 | self.send_header(*h) | |
208 | if h[0].lower() == 'content-length': |
|
208 | if h[0].lower() == r'content-length': | |
209 | self.length = int(h[1]) |
|
209 | self.length = int(h[1]) | |
210 | if (self.length is None and |
|
210 | if (self.length is None and | |
211 | saved_status[0] != common.HTTP_NOT_MODIFIED): |
|
211 | saved_status[0] != common.HTTP_NOT_MODIFIED): | |
212 | self._chunked = (not self.close_connection and |
|
212 | self._chunked = (not self.close_connection and | |
213 |
self.request_version == |
|
213 | self.request_version == r'HTTP/1.1') | |
214 | if self._chunked: |
|
214 | if self._chunked: | |
215 | self.send_header(r'Transfer-Encoding', r'chunked') |
|
215 | self.send_header(r'Transfer-Encoding', r'chunked') | |
216 | else: |
|
216 | else: | |
@@ -223,7 +223,7 b' class _httprequesthandler(httpservermod.' | |||||
223 | code, msg = http_status.split(None, 1) |
|
223 | code, msg = http_status.split(None, 1) | |
224 | code = int(code) |
|
224 | code = int(code) | |
225 | self.saved_status = http_status |
|
225 | self.saved_status = http_status | |
226 | bad_headers = ('connection', 'transfer-encoding') |
|
226 | bad_headers = (r'connection', r'transfer-encoding') | |
227 | self.saved_headers = [h for h in headers |
|
227 | self.saved_headers = [h for h in headers | |
228 | if h[0].lower() not in bad_headers] |
|
228 | if h[0].lower() not in bad_headers] | |
229 | return self._write |
|
229 | return self._write |
General Comments 0
You need to be logged in to leave comments.
Login now