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

Closed
opened 2025-12-29 08:22:43 +01:00 by adam · 3 comments
Owner

Originally created by @SubjectiveReality on GitHub (Aug 23, 2018).

Originally assigned to: @StefH on GitHub.

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).

Originally created by @SubjectiveReality on GitHub (Aug 23, 2018). Originally assigned to: @StefH on GitHub. Given the following C# mapping: ``` c# 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).
adam closed this issue 2025-12-29 08:22:43 +01:00
Author
Owner

@StefH commented on GitHub (Aug 23, 2018):

Issue is confirmed. I'll investigate.

Probably the same issue is with cookies...

@StefH commented on GitHub (Aug 23, 2018): Issue is confirmed. I'll investigate. Probably the same issue is with cookies...
Author
Owner

@StefH commented on GitHub (Aug 23, 2018):

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

@StefH commented on GitHub (Aug 23, 2018): Solved. A new NuGet will be uploaded shortly...
Author
Owner

@SubjectiveReality commented on GitHub (Aug 23, 2018):

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

@SubjectiveReality commented on GitHub (Aug 23, 2018): Wow, that's awesome speed, Stef! Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#135