A WSGI application which returns a response with no headers.
(environ, start_response)
| 894 | |
| 895 | |
| 896 | def no_response_headers_app(environ, start_response): |
| 897 | """A WSGI application which returns a response with no headers.""" |
| 898 | response = Response("Response") |
| 899 | response.headers.clear() |
| 900 | return response(environ, start_response) |
| 901 | |
| 902 | |
| 903 | def test_no_content_type_header_addition(): |