mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-07 13:54:47 +03:00
py3 compat
This commit is contained in:
parent
53117698e0
commit
0b3db028a2
|
@ -28,7 +28,7 @@ def force_authenticate(request, user=None, token=None):
|
|||
if requests is not None:
|
||||
class HeaderDict(requests.packages.urllib3._collections.HTTPHeaderDict):
|
||||
def get_all(self, key, default):
|
||||
return self.getheaders(self, key)
|
||||
return self.getheaders(key)
|
||||
|
||||
class MockOriginalResponse(object):
|
||||
def __init__(self, headers):
|
||||
|
|
Loading…
Reference in New Issue
Block a user