Show More
@@ -328,10 +328,7 b' def _handlehttperror(e, wsgireq, cmd):' | |||||
328 | if (wsgireq.env[r'REQUEST_METHOD'] == r'POST' and |
|
328 | if (wsgireq.env[r'REQUEST_METHOD'] == r'POST' and | |
329 | # But not if Expect: 100-continue is being used. |
|
329 | # But not if Expect: 100-continue is being used. | |
330 | (wsgireq.env.get('HTTP_EXPECT', |
|
330 | (wsgireq.env.get('HTTP_EXPECT', | |
331 |
'').lower() != '100-continue') |
|
331 | '').lower() != '100-continue')): | |
332 | # Or the non-httplib HTTP library is being advertised by |
|
|||
333 | # the client. |
|
|||
334 | wsgireq.env.get('X-HgHttp2', '')): |
|
|||
335 | wsgireq.drain() |
|
332 | wsgireq.drain() | |
336 | else: |
|
333 | else: | |
337 | wsgireq.headers.append((r'Connection', r'Close')) |
|
334 | wsgireq.headers.append((r'Connection', r'Close')) |
General Comments 0
You need to be logged in to leave comments.
Login now