MCPcopy
hub / github.com/benoitc/gunicorn / make_fail_app

Function make_fail_app

gunicorn/util.py:649–659  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

647
648
649def make_fail_app(msg):
650 msg = to_bytestring(msg)
651
652 def app(environ, start_response):
653 start_response("500 Internal Server Error", [
654 ("Content-Type", "text/plain"),
655 ("Content-Length", str(len(msg)))
656 ])
657 return [msg]
658
659 return app
660
661
662def split_request_uri(uri):

Callers

nothing calls this directly

Calls 1

to_bytestringFunction · 0.85

Tested by

no test coverage detected