File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/pact/mock_service/request_handlers Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def request_method
2323 end
2424
2525 def respond env
26- request_body = JSON . load ( env [ 'rack.input' ] . string )
26+ request_body = JSON . load ( env [ 'rack.input' ] . read )
2727 parsing_options = { pact_specification_version : pact_specification_version }
2828 interactions = request_body [ 'interactions' ] . collect { | hash | Interaction . from_hash ( hash , parsing_options ) }
2929 begin
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def request_method
2525 end
2626
2727 def respond env
28- body = env [ 'rack.input' ] . string
28+ body = env [ 'rack.input' ] . read
2929 consumer_contract_details = body . size > 0 ? JSON . parse ( body , symbolize_names : true ) : { }
3030 consumer_contract_params = default_options . merge ( consumer_contract_details . merge ( interactions : verified_interactions ) )
3131 consumer_contract_writer = ConsumerContractWriter . new ( consumer_contract_params , logger )
You can’t perform that action at this time.
0 commit comments