##// END OF EJS Templates
hgweb: use our forked wsgiheaders module instead of stdlib one...
Augie Fackler -
r37624:da84e26d default
parent child Browse files
Show More
@@ -8,7 +8,6 b''
8
8
9 from __future__ import absolute_import
9 from __future__ import absolute_import
10
10
11 import wsgiref.headers as wsgiheaders
12 #import wsgiref.validate
11 #import wsgiref.validate
13
12
14 from ..thirdparty import (
13 from ..thirdparty import (
@@ -289,6 +288,7 b' def parserequestfromenv(env, reponame=No'
289 if k.startswith('HTTP_'):
288 if k.startswith('HTTP_'):
290 headers.append((k[len('HTTP_'):].replace('_', '-'), v))
289 headers.append((k[len('HTTP_'):].replace('_', '-'), v))
291
290
291 from . import wsgiheaders # avoid cycle
292 headers = wsgiheaders.Headers(headers)
292 headers = wsgiheaders.Headers(headers)
293
293
294 # This is kind of a lie because the HTTP header wasn't explicitly
294 # This is kind of a lie because the HTTP header wasn't explicitly
@@ -378,6 +378,7 b' class wsgiresponse(object):'
378 self._startresponse = startresponse
378 self._startresponse = startresponse
379
379
380 self.status = None
380 self.status = None
381 from . import wsgiheaders # avoid cycle
381 self.headers = wsgiheaders.Headers([])
382 self.headers = wsgiheaders.Headers([])
382
383
383 self._bodybytes = None
384 self._bodybytes = None
General Comments 0
You need to be logged in to leave comments. Login now