Skip to content

Commit 952af04

Browse files
committed
Fix decode_rack_response
The Rack response body is _not_ an Enumerable, it just responds to #each. The method was assuming otherwise, which led to breakage when trying to use appsignal/appsignal-ruby#1037
1 parent 36041df commit 952af04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails_twirp/testing/integration_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def request_content_type
9191
end
9292

9393
def decode_rack_response(service, rpc, status, headers, body)
94-
body = body.join # body is an Enumerable
94+
body = Array.wrap(body).join # body is each-able
9595

9696
if status === 200
9797
output_class = service.rpcs[rpc][:output_class]

0 commit comments

Comments
 (0)