mercurial/hgweb/hgweb_mod.py
changeset 18352 e33b9b92a200
parent 18258 bebb05a7e249
child 18429 e9ea0f0f05e7
--- a/mercurial/hgweb/hgweb_mod.py	Tue Jan 15 01:05:12 2013 +0100
+++ b/mercurial/hgweb/hgweb_mod.py	Tue Jan 15 01:07:03 2013 +0100
@@ -158,8 +158,9 @@
                                  '').lower() != '100-continue') or
                     req.env.get('X-HgHttp2', '')):
                     req.drain()
-                req.respond(inst, protocol.HGTYPE)
-                return '0\n%s\n' % inst.message
+                req.respond(inst, protocol.HGTYPE,
+                            body='0\n%s\n' % inst.message)
+                return ''
 
         # translate user-visible url structure to internal structure