@@ -1678,6 +1678,11 @@ func TestGetRedirect(t *testing.T) {
16781678 url: "/foo/bar",
16791679 expectedRedirect: "/foo/bar",
16801680 },
1681+ {
1682+ name: "request with query preserves query",
1683+ url: "/foo?bar",
1684+ expectedRedirect: "/foo?bar",
1685+ },
16811686 {
16821687 name: "request under ProxyPrefix redirects to root",
16831688 url: proxy.ProxyPrefix + "/foo/bar",