From patchwork Wed Jun 13 12:37:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3727: hgweb: insist http_status value is a sysstr From: phabricator X-Patchwork-Id: 32112 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Wed, 13 Jun 2018 12:37:33 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGaf0e88e64ede: hgweb: insist http_status value is a sysstr (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3727?vs=9039&id=9048 REVISION DETAIL https://phab.mercurial-scm.org/D3727 AFFECTED FILES mercurial/hgweb/server.py CHANGE DETAILS To: durin42, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py --- a/mercurial/hgweb/server.py +++ b/mercurial/hgweb/server.py @@ -215,6 +215,7 @@ self.sent_headers = True def _start_response(self, http_status, headers, exc_info=None): + assert isinstance(http_status, str) code, msg = http_status.split(None, 1) code = int(code) self.saved_status = http_status