Fix WSGI signature for DjangoTestAdapter

Closes https://github.com/encode/django-rest-framework/issues/7132
This commit is contained in:
Tom Christie 2021-03-16 13:22:36 +00:00 committed by GitHub
parent b0ca248d88
commit 007defb8ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ if requests is not None:
"""
raw_kwargs = {}
def start_response(wsgi_status, wsgi_headers):
def start_response(wsgi_status, wsgi_headers, exc_info=None):
status, _, reason = wsgi_status.partition(' ')
raw_kwargs['status'] = int(status)
raw_kwargs['reason'] = reason