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