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

Issue: Case of header key/name not ignored in RequestBuilder when ignoreCase == true #189

Closed
SubjectiveReality opened this issue Aug 23, 2018 · 3 comments
Assignees

Comments

@SubjectiveReality
Copy link
Contributor

SubjectiveReality commented Aug 23, 2018

Given the following C# mapping:

        server
                .Given(
                Request.Create()
                    .WithPath("/blah/blah")
                    .WithHeader("SOAP", "myHeaderBlah", true)
                )
                .RespondWith(
                    Response.Create()
                        .WithBody("found your soap header")
               );

WireMock.net mapping will be found if a request is made with a header where SOAP casing matches exactly, but will not be found if the casing does not match exactly (i.e. Soap).

@StefH StefH changed the title Case of header key/name not ignored in RequestBuilder when ignoreCase == true Issue: Case of header key/name not ignored in RequestBuilder when ignoreCase == true Aug 23, 2018
@StefH StefH self-assigned this Aug 23, 2018
@StefH
Copy link
Collaborator

StefH commented Aug 23, 2018

Issue is confirmed. I'll investigate.

Probably the same issue is with cookies...

StefH added a commit that referenced this issue Aug 23, 2018
StefH added a commit that referenced this issue Aug 23, 2018
@StefH
Copy link
Collaborator

StefH commented Aug 23, 2018

Solved. A new NuGet will be uploaded shortly...

@StefH StefH closed this as completed Aug 23, 2018
@SubjectiveReality
Copy link
Contributor Author

Wow, that's awesome speed, Stef! Thank you!

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

No branches or pull requests

2 participants