]> Sergey Matveev's repositories - godlighty.git/blobdiff - rc/cgi.go
Do not print raw URL path
[godlighty.git] / rc / cgi.go
index 8dab80f9eb900a290b494c8d117d97ae162d7e4e..e17935a795af8491957492564b24fc0bf48ea2db 100644 (file)
--- a/rc/cgi.go
+++ b/rc/cgi.go
@@ -31,7 +31,7 @@ func RunCGIAndLog(host string, w http.ResponseWriter, r *http.Request, h *cgi.Ha
                h.Env = append(h.Env, "TLSREMOTEDN="+r.TLS.PeerCertificates[0].Subject.String())
        }
        h.ServeHTTP(wc, r)
-       fmt.Printf("%s %s \"%s %s %s\" %d %d \"%s\"\n",
+       fmt.Printf("%s %s \"%s %+q %s\" %d %d \"%s\"\n",
                r.RemoteAddr, host, r.Method, r.URL.Path, r.Proto,
                wc.Status, wc.Size,
                r.Header.Get("User-Agent"),