(msg)
| 647 | |
| 648 | |
| 649 | def 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 | |
| 662 | def split_request_uri(uri): |
nothing calls this directly
no test coverage detected