Skip to content
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

Add ability to provide multiple values for headers in response #59

Merged
merged 2 commits into from
Oct 27, 2017
Merged

Add ability to provide multiple values for headers in response #59

merged 2 commits into from
Oct 27, 2017

Conversation

Dreamescaper
Copy link
Contributor

@Dreamescaper Dreamescaper commented Oct 27, 2017

Add ability to specify several values for same header in response. In this PR it is not supported to define in json.

WithHeader and WithHeaders methods are backward-compatible. The only change, that could be breaking - public property Headers in ResponseMessage has different type now

@StefH
Copy link
Collaborator

StefH commented Oct 27, 2017

I'm updating the code to support the json.

Currently the code is working fine, so the response contains multiple headers:

MyHeader →application/json
MyHeader →application/json2

However, there are also some pages in internet which says that
MyHeader →application/json, MyHeader →application/json2
or
MyHeader →application/json; MyHeader →application/json2

is also supported.

@StefH StefH merged commit d134684 into WireMock-Net:master Oct 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants