mirror of https://github.com/perkeep/perkeep.git
camweb: fix minor CGI bug; wasn't affecting anything.
This commit is contained in:
parent
a29b948f3e
commit
37f8217eff
|
@ -43,7 +43,7 @@ type CgiHandler struct {
|
|||
}
|
||||
|
||||
func (h *CgiHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
||||
pathInfo := req.URL.RawPath
|
||||
pathInfo := req.URL.Path
|
||||
if strings.HasPrefix(pathInfo, h.Root) {
|
||||
pathInfo = pathInfo[len(h.Root):]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue