--- a/mercurial/wireprotoserver.py Thu Mar 08 15:58:52 2018 -0800
+++ b/mercurial/wireprotoserver.py Thu Mar 08 16:43:32 2018 -0800
@@ -328,10 +328,7 @@
if (wsgireq.env[r'REQUEST_METHOD'] == r'POST' and
# But not if Expect: 100-continue is being used.
(wsgireq.env.get('HTTP_EXPECT',
- '').lower() != '100-continue') or
- # Or the non-httplib HTTP library is being advertised by
- # the client.
- wsgireq.env.get('X-HgHttp2', '')):
+ '').lower() != '100-continue')):
wsgireq.drain()
else:
wsgireq.headers.append((r'Connection', r'Close'))