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 a49d85d commit a602e3fCopy full SHA for a602e3f
kubernetes/client/rest.py
@@ -41,10 +41,14 @@ def __init__(self, resp):
41
42
def getheaders(self):
43
"""Returns a dictionary of the response headers."""
44
+ if hasattr(self.urllib3_response, 'headers'):
45
+ return self.urllib3_response.headers.items()
46
return self.urllib3_response.getheaders()
47
48
def getheader(self, name, default=None):
49
"""Returns a given response header."""
50
51
+ return self.urllib3_response.headers.get(name, default)
52
return self.urllib3_response.getheader(name, default)
53
54
0 commit comments