@@ -140,6 +140,29 @@ var _ = Describe("HTTP Upstream Suite", func() {
141 expectedUpstream: "encodedSlashes",
141 expectedUpstream: "encodedSlashes",
143+ Entry("request a path with an empty query string", &httpUpstreamTableInput{
145+ serverAddr: &serverAddr,
146+ target: "http://example.localhost/foo?",
150+ expectedResponse: testHTTPResponse{
152+ header: map[string][]string{
153+ contentType: {applicationJSON},
155+ request: testHTTPRequest{
157+ URL: "http://example.localhost/foo?",
158+ Header: map[string][]string{},
160+ Host: "example.localhost",
161+ RequestURI: "http://example.localhost/foo?",
164+ expectedUpstream: "default",
143 Entry("when the request has a body", &httpUpstreamTableInput{
166 Entry("when the request has a body", &httpUpstreamTableInput{
144 id: "requestWithBody",
167 id: "requestWithBody",
145 serverAddr: &serverAddr,
168 serverAddr: &serverAddr,