Skip to content

Commit

Permalink
[python] replace getheaders with headers
Browse files Browse the repository at this point in the history
  • Loading branch information
fa0311 committed Sep 21, 2023
1 parent 754c0e2 commit 5a30c8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class ApiClient:
else:
return ApiResponse(status_code = response_data.status,
data = return_data,
headers = response_data.getheaders(),
headers = response_data.headers,
raw_data = response_data.data)
{{/tornado}}
{{#tornado}}
Expand All @@ -271,7 +271,7 @@ class ApiClient:
else:
raise tornado.gen.Return(ApiResponse(status_code = response_data.status,
data = return_data,
headers = response_data.getheaders(),
headers = response_data.headers,
raw_data = response_data.data))
{{/tornado}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class ApiException(OpenApiException):
self.status = http_resp.status
self.reason = http_resp.reason
self.body = http_resp.data
self.headers = http_resp.getheaders()
self.headers = http_resp.headers
else:
self.status = status
self.reason = reason
Expand Down

0 comments on commit 5a30c8f

Please sign in to comment.