mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Multiple headers with same name #48
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Dreamescaper on GitHub (Oct 27, 2017).
Originally assigned to: @StefH on GitHub.
Do I understand correct that currently it's not possible to set multiple headers with same name to ResponseMessage?
In particular, I'm interested in providing multiple Set-Cookie headers.
Is it possible to add such functionality? I could submit PR with changing Headers property from 'IDictionary<string, string>' to something like 'IDictionary<string, string[]>', but not sure how great is that, considering that it is public member.
@StefH commented on GitHub (Oct 27, 2017):
First change will be:
Also your idea is possible:
However, also the json parsing should be updated. I will take a look.
@Dreamescaper commented on GitHub (Oct 27, 2017):
Added PR with simple implementation for that.
@StefH commented on GitHub (Oct 27, 2017):
Thanks.
I added the JSON part to your code. Please review.
And if it's ok, I can create a NuGet.
@Dreamescaper commented on GitHub (Oct 28, 2017):
Great, thanks!