Submitter | Matt Harbison |
---|---|
Date | Jan. 28, 2019, 5:20 a.m. |
Message ID | <1d6f4c32abc28ea54e3d.1548652852@Envy> |
Download | mbox | patch |
Permalink | /patch/38132/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py --- a/mercurial/hgweb/server.py +++ b/mercurial/hgweb/server.py @@ -165,7 +165,7 @@ class _httprequesthandler(httpservermod. if length: env[r'CONTENT_LENGTH'] = length for header in [h for h in self.headers.keys() - if h not in (r'content-type', r'content-length')]: + if h.lower() not in (r'content-type', r'content-length')]: hkey = r'HTTP_' + header.replace(r'-', r'_').upper() hval = self.headers.get(header) hval = hval.replace(r'\n', r'').strip()