Skip to content

Commit 61881a2

Browse files
authored
Merge pull request #461 from moberegger/moberegger/cleaner-read-body
Save on extra to_s when reading response body
2 parents 8239f36 + ac4ac36 commit 61881a2

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)