mercurial/hgweb/hgweb_mod.py
changeset 14999 f6a737357195
parent 14953 6ee6ecf1ee89
parent 14991 4f39610996fa
child 16683 525fdb738975
--- a/mercurial/hgweb/hgweb_mod.py	Sun Jul 31 22:12:13 2011 +0200
+++ b/mercurial/hgweb/hgweb_mod.py	Mon Aug 01 10:54:34 2011 -0500
@@ -129,8 +129,9 @@
                 # A client that sends unbundle without 100-continue will
                 # break if we respond early.
                 if (cmd == 'unbundle' and
-                    req.env.get('HTTP_EXPECT',
-                                '').lower() != '100-continue'):
+                    (req.env.get('HTTP_EXPECT',
+                                 '').lower() != '100-continue') or
+                    req.env.get('X-HgHttp2', '')):
                     req.drain()
                 req.respond(inst, protocol.HGTYPE)
                 return '0\n%s\n' % inst.message