hi guys, I have noticed that by default pact will ...
# pact-jvm
p
hi guys, I have noticed that by default pact will record
Content-Type
header in generated pact json during consumer tests, e.g.:
Copy code
"headers": {
     "Content-Type": "application/json; charset=UTF-8"
},
even though I do not mention this header explicitly. Is it possible to configure pact to skip content-type header and do not record it in generated pact json? Or omit content-type during pact verification tests in provider? I’m using
<http://au.com|au.com>.dius.pact.consumer.junit5 4.2.17
for consumer tests and
<http://au.com|au.com>.dius.pact.provider.junit 4.1.17
for provider tests
u
The content type is needed because it needs to know how to match it (i.e. plain text vs JSON vs XML)
p
ok, thank you for the answer!