New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content type of expected request isn't honoured #963
Comments
I've just reproduced this, thanks for raising. It seems that it's a problem for any json type that isn't I can also see that Pact JS is passing on the correct content type to the core, and it is storing the correct content type in the Pact Handle.
This leads me to believe there is some further processing downstream of this that downcasts it to a general JSON mime type. |
This is fixed with pact-core 13.11.3. Thanks! |
Awesome! Thanks for confirming 🙏 |
Software versions
Issue Checklist
Please confirm the following:
Expected behaviour
The content type of the consumer's request is matched against the corresponding content type of the registered Interaction (v2). Substituting the Pact library with version 9.18.1 works as expected.
Actual behaviour
The content type of the consumer's request is expected to be
application/json
regardless of Interaction's content type.Steps to reproduce
package.json
test.ts
Steps
npm i
npx ts-node test.ts
Relevant log files
test.txt
The text was updated successfully, but these errors were encountered: