Skip to content

Commit ac4ac36

Browse files
committed
Save on extra to_s when reading response body
1 parent f6adc5f commit ac4ac36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/openapi_first/response_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def read_body(rack_response)
2525
buffered_body = +''
2626

2727
if rack_response.body.respond_to?(:each)
28-
rack_response.body.each { |chunk| buffered_body.to_s << chunk }
28+
rack_response.body.each { |chunk| buffered_body << chunk }
2929
return buffered_body
3030
end
3131
rack_response.body

0 commit comments

Comments
 (0)