Skip to content

Commit 82a6d7a

Browse files
committed
Use to_h for error headers
1 parent 5236247 commit 82a6d7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/resources/ruby/api_client.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module {{moduleName}}
5555
:message => response.return_message)
5656
else
5757
fail ApiError.new(:code => response.code,
58-
:response_headers => response.headers,
58+
:response_headers => response.headers.to_h,
5959
:response_body => response.body),
6060
response.status_message
6161
end

0 commit comments

Comments
 (0)