mirror of
https://github.com/morpheus65535/bazarr.git
synced 2026-04-25 16:48:20 -04:00
12 lines
335 B
Python
12 lines
335 B
Python
def app(environ, start_response): # pragma: no cover
|
|
cl = environ.get('CONTENT_LENGTH', None)
|
|
if cl is not None:
|
|
cl = int(cl)
|
|
body = environ['wsgi.input'].read(cl)
|
|
cl = str(len(body))
|
|
start_response(
|
|
'200 OK',
|
|
[('Content-Length', cl), ('Content-Type', 'text/plain')]
|
|
)
|
|
return [body]
|