We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eb6cdc commit 5c54b22Copy full SHA for 5c54b22
rest_framework/test.py
@@ -106,15 +106,6 @@ def start_response(wsgi_status, wsgi_headers):
106
def close(self):
107
pass
108
109
- class NoExternalRequestsAdapter(requests.adapters.HTTPAdapter):
110
- def send(self, request, *args, **kwargs):
111
- msg = (
112
- 'RequestsClient refusing to make an outgoing network request '
113
- 'to "%s". Only "testserver" or hostnames in your ALLOWED_HOSTS '
114
- 'setting are valid.' % request.url
115
- )
116
- raise RuntimeError(msg)
117
-
118
class RequestsClient(requests.Session):
119
def __init__(self, *args, **kwargs):
120
super(RequestsClient, self).__init__(*args, **kwargs)
0 commit comments