(rw http.ResponseWriter, req *http.Request)
| 381 | type closureRedirector string |
| 382 | |
| 383 | func (base closureRedirector) ServeHTTP(rw http.ResponseWriter, req *http.Request) { |
| 384 | newURL := string(base) + "/" + path.Clean(httputil.PathSuffix(req)) |
| 385 | http.Redirect(rw, req, newURL, http.StatusTemporaryRedirect) |
| 386 | } |
| 387 | |
| 388 | func camliMode(req *http.Request) string { |
| 389 | return req.URL.Query().Get("camli.mode") |
nothing calls this directly
no test coverage detected