From 9265a03416a536acb37ca6073292a0c88b23ab47 Mon Sep 17 00:00:00 2001 From: Giovanni Barillari Date: Wed, 18 Jan 2023 14:27:30 +0100 Subject: [PATCH] Fix WSGI environ optional items (#42) --- granian/wsgi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/granian/wsgi.py b/granian/wsgi.py index 3af5cab4..a92fcf4e 100644 --- a/granian/wsgi.py +++ b/granian/wsgi.py @@ -1,4 +1,5 @@ import os +import sys from functools import wraps from typing import Any, List, Tuple @@ -21,8 +22,7 @@ def _callback_wrapper(callback): 'SCRIPT_NAME': '', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'Granian', - 'wsgi.errors': None, - 'wsgi.file_wrapper': None, + 'wsgi.errors': sys.stderr, 'wsgi.input_terminated': True, 'wsgi.input': None, 'wsgi.multiprocess': False,