Skip to content

Order of querystring values no longer matters

Compare
Choose a tag to compare
@quii quii released this 25 Jul 09:00
d60fc74

The order of querystring values should not matter. Now they dont.

This test shows the problem

func TestItIgnoresOrderOfQueryString(t *testing.T) {
	expectedRequest := Request{
		URI:    "?a=1&b=2",
		Method: "GET",
	}

	incomingRequest := Request{
		URI:    "?b=2&a=1",
		Method: "GET",
	}

	assert.True(t, requestMatches(expectedRequest, incomingRequest, endpointName, testLogger))
}