MCPcopy Index your code
hub / github.com/python/cpython / cleanup_headers

Method cleanup_headers

Lib/wsgiref/handlers.py:218–224  ·  view source on GitHub ↗

Make any necessary header changes or defaults Subclasses can extend this to add other defaults.

(self)

Source from the content-addressed store, hash-verified

216
217
218 def cleanup_headers(self):
219 """Make any necessary header changes or defaults
220
221 Subclasses can extend this to add other defaults.
222 """
223 if 'Content-Length' not in self.headers:
224 self.set_content_length()
225
226 def start_response(self, status, headers,exc_info=None):
227 """'start_response()' callable as specified by PEP 3333"""

Callers 1

send_headersMethod · 0.95

Calls 1

set_content_lengthMethod · 0.95

Tested by

no test coverage detected