We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
body
1 parent 1a1d9fe commit 77e8d41Copy full SHA for 77e8d41
lib/pact/consumer/mock_service/rack_request_helper.rb
@@ -24,7 +24,7 @@ def request_as_hash_from env
24
end
25
26
request[:headers] = headers_from env
27
- body_string = request[:body].read
+ body_string = request[:body]&.read || ""
28
29
if body_string.empty?
30
request.delete :body
0 commit comments