mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 01:26:53 +03:00
Fix WSGI signature for DjangoTestAdapter (#7846)
Closes https://github.com/encode/django-rest-framework/issues/7132
This commit is contained in:
parent
a40bce50cd
commit
3e274146fc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user