Skip to content

API call isn't matched when using an empty query string parameter #1247

@domwvitality

Description

@domwvitality

Describe the bug

When adding a query string parameter with an empty value the API call isn't matched.

Expected behavior:

The API call should be match when using a query string parameter with an empty value.

Test to reproduce

Using this API call http://localhost:9998/path?type=

This will match:

server
    .Given(Request.Create()
            .WithPath("/path")
            .UsingGet())
    .RespondWith(Response.Create()
            .WithStatusCode(200));

This won't match:

server
    .Given(Request.Create()
            .WithPath("/path")
            .WithParam("type", "")
            .UsingGet())
    .RespondWith(Response.Create()
            .WithStatusCode(200));

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions