Skip to content

Commit

Permalink
Use headers instead of deprecated getheaders() in urllib3
Browse files Browse the repository at this point in the history
  • Loading branch information
andreagrandi committed Nov 30, 2023
1 parent 86b9ef8 commit 5c8c2dc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion clients/client/python/ory_client/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, resp):

def getheaders(self):
"""Returns a dictionary of the response headers."""
return self.urllib3_response.getheaders()
return self.urllib3_response.headers

def getheader(self, name, default=None):
"""Returns a given response header."""
Expand Down
2 changes: 1 addition & 1 deletion clients/hydra/python/ory_hydra_client/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, resp):

def getheaders(self):
"""Returns a dictionary of the response headers."""
return self.urllib3_response.getheaders()
return self.urllib3_response.headers

def getheader(self, name, default=None):
"""Returns a given response header."""
Expand Down
2 changes: 1 addition & 1 deletion clients/keto/python/ory_keto_client/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, resp):

def getheaders(self):
"""Returns a dictionary of the response headers."""
return self.urllib3_response.getheaders()
return self.urllib3_response.headers

def getheader(self, name, default=None):
"""Returns a given response header."""
Expand Down
2 changes: 1 addition & 1 deletion clients/kratos/python/ory_kratos_client/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, resp):

def getheaders(self):
"""Returns a dictionary of the response headers."""
return self.urllib3_response.getheaders()
return self.urllib3_response.headers

def getheader(self, name, default=None):
"""Returns a given response header."""
Expand Down
2 changes: 1 addition & 1 deletion clients/oathkeeper/python/ory_oathkeeper_client/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, resp):

def getheaders(self):
"""Returns a dictionary of the response headers."""
return self.urllib3_response.getheaders()
return self.urllib3_response.headers

def getheader(self, name, default=None):
"""Returns a given response header."""
Expand Down

0 comments on commit 5c8c2dc

Please sign in to comment.