camweb: fix minor CGI bug; wasn't affecting anything.

This commit is contained in:
Brad Fitzpatrick 2011-02-02 13:00:20 -08:00
parent a29b948f3e
commit 37f8217eff
1 changed files with 1 additions and 1 deletions

View File

@ -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):]
}