<#1031 Mismatch with header 'Accept'> Issue create...
# pact-js-development
g
#1031 Mismatch with header 'Accept' Issue created by danymarques Software versionsOS: Mac OSX 13.0.1 • Consumer Pact library: Pact JS v10.4.0 • Node Version: 14.21.1 Issue Checklist Please confirm the following: ☑︎ I have upgraded to the latest ☑︎ I have read the FAQs in the Readme ☑︎ I have triple checked, that there are no unhandled promises in my code and have read the section on intermittent test failures ☐ I have set my log level to debug and attached a log file showing the complete request/response cycle ☑︎ For bonus points and virtual high fives, I have created a reproducible git repository (see below) to illustrate the problem Expected behavior When giving multiple arguments to a header, the tests should work. Actual behavior When we give multiple arguments to a header, eg:
Copy code
Accept: 'application/problem+json, application/json, text/plain, */*',
the tests fail with the following error:
Copy code
1.0 Mismatch with header 'Accept': Expected header 'Accept' to have value 'application/problem+jsonapplication/jsontext/plain*/*' but was 'application/problem+json'
which means that the headers are not handled correctly. Steps to reproduce • git clone git@github.com:danymarques/pact-error-demo.git • npm ci • npm run test pact-foundation/pact-js