Currently, my API returns HTTP code 302 in case of success.
However, PactFfi follows the redirect. I want it not to do this. How?
This my code:
require 'pact/ffi'
v = PactFfi.verifier_new_for_application('foo', '0.0.0')
PactFfi.verifier_set_provider_info(v, 'foo', 'http', '127.0.0.1', port, '/')
PactFfi.verifier_set_provider_state(v, "http://127.0.0.1:8080/pact-state", 0, 1)
PactFfi.verifier_add_file_source(v, file)
result = BlockingPactVerifier.execute(v)
PactFfi.verifier_shutdown(v)
I'm using these versions:
gem 'pact', '1.67.3'
gem 'pact-ffi', '0.4.28.0'