mercurial/hgweb/hgweb_mod.py
branchstable
changeset 19488 60e060f4faa9
parent 18858 f02045645d12
child 19906 1dba26575dba
--- a/mercurial/hgweb/hgweb_mod.py	Thu Jul 25 02:41:22 2013 +0400
+++ b/mercurial/hgweb/hgweb_mod.py	Sat May 11 20:40:15 2013 -0500
@@ -176,6 +176,8 @@
                                  '').lower() != '100-continue') or
                     req.env.get('X-HgHttp2', '')):
                     req.drain()
+                else:
+                    req.headers.append(('Connection', 'Close'))
                 req.respond(inst, protocol.HGTYPE,
                             body='0\n%s\n' % inst.message)
                 return ''