@@ -140,6 +140,29 @@ var _ = Describe("HTTP Upstream Suite", func() {
140140 },
141141 expectedUpstream: "encodedSlashes",
142142 }),
143+ Entry("request a path with an empty query string", &httpUpstreamTableInput{
144+ id: "default",
145+ serverAddr: &serverAddr,
146+ target: "http://example.localhost/foo?",
147+ method: "GET",
148+ body: []byte{},
149+ errorHandler: nil,
150+ expectedResponse: testHTTPResponse{
151+ code: 200,
152+ header: map[string][]string{
153+ contentType: {applicationJSON},
154+ },
155+ request: testHTTPRequest{
156+ Method: "GET",
157+ URL: "http://example.localhost/foo?",
158+ Header: map[string][]string{},
159+ Body: []byte{},
160+ Host: "example.localhost",
161+ RequestURI: "http://example.localhost/foo?",
162+ },
163+ },
164+ expectedUpstream: "default",
165+ }),
143166 Entry("when the request has a body", &httpUpstreamTableInput{
144167 id: "requestWithBody",
145168 serverAddr: &serverAddr,