D1085: hgweb: set sent_headers attr as early as practical
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sun Oct 15 09:27:17 EDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG60e7da55e5e6: hgweb: set sent_headers attr as early as practical (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1085?vs=2765&id=2775
REVISION DETAIL
https://phab.mercurial-scm.org/D1085
AFFECTED FILES
mercurial/hgweb/server.py
CHANGE DETAILS
diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py
--- a/mercurial/hgweb/server.py
+++ b/mercurial/hgweb/server.py
@@ -115,6 +115,7 @@
self.do_POST()
def do_hgweb(self):
+ self.sent_headers = False
path, query = _splitURI(self.path)
env = {}
@@ -167,7 +168,6 @@
self.saved_status = None
self.saved_headers = []
- self.sent_headers = False
self.length = None
self._chunked = None
for chunk in self.server.application(env, self._start_response):
To: durin42, #hg-reviewers, yuja
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list