File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
.generator/src/generator/templates Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ class ApiClient:
132
132
133
133
if return_http_data_only:
134
134
return return_data
135
- return (return_data, response.status, response.headers.copy( ))
135
+ return (return_data, response.status, dict( response.headers))
136
136
137
137
def parameters_to_multipart(self, params):
138
138
"""Get parameters as list of tuples, formatting as json if value is dict.
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class ApiException(OpenApiException):
94
94
self.body = json.loads(http_resp.data)
95
95
except Exception:
96
96
self.body = http_resp.data.decode("utf-8")
97
- self.headers = http_resp.headers.copy( )
97
+ self.headers = dict( http_resp.headers)
98
98
else:
99
99
self.status = status
100
100
self.reason = reason
You can’t perform that action at this time.
0 commit comments