Esempio n. 1
0
 def test_fix_headers(self):
     environ = {'CONTENT_TYPE': 'text/html', 'CONTENT_LENGTH': '0', 'HTTPS': 'HTTPS'}
     fix_http_headers(environ, remove=True)
     assert environ['HTTP_CONTENT_TYPE']
     assert 'CONTENT_TYPE' not in environ
Esempio n. 2
0
 def __init__(self, environ):
     fix_http_headers(environ)
     self._environ = environ