Allow proxying to a resource at /

Add a route for /proxy/<kind>/<name>/ without requiring additional path
information. This allows for e.g. /proxy/service/myservice/, which will
proxy to the service at /, instead of always requiring something in the
path.
This commit is contained in:
Andy Goldstein
2015-02-10 10:04:40 -05:00
parent e27d534b87
commit 4f89ed9d6a
2 changed files with 4 additions and 0 deletions

View File

@@ -244,6 +244,7 @@ func TestProxy(t *testing.T) {
{"DELETE", "/some/dir/id", "", "ok", "text/css", "default"},
{"GET", "/some/dir/id", "", "answer", "text/css", "other"},
{"GET", "/trailing/slash/", "", "answer", "text/css", "default"},
{"GET", "/", "", "answer", "text/css", "default"},
}
for _, item := range table {