1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-03-01 09:05:57 +00:00
bazarr/libs/waitress/tests/fixtureapps/sleepy.py
Louis Vézina 1b0e721a9d WIP
2020-04-15 00:02:44 -04:00

12 lines
342 B
Python

import time
def app(environ, start_response): # pragma: no cover
if environ["PATH_INFO"] == "/sleepy":
time.sleep(2)
body = b"sleepy returned"
else:
body = b"notsleepy returned"
cl = str(len(body))
start_response("200 OK", [("Content-Length", cl), ("Content-Type", "text/plain")])
return [body]