]> Sergey Matveev's repositories - godlighty.git/blobdiff - rc/redirect.go
Do not print raw URL path
[godlighty.git] / rc / redirect.go
index ecbdbfb98c048b9daecb27d579aa2dca50b98eb5..2039a076cd0e5f394d1e68f86ef97cebdcc2accd 100644 (file)
@@ -28,7 +28,7 @@ func Redirect(
        to string, status int,
 ) {
        http.Redirect(w, r, to, status)
-       fmt.Printf("%s %s \"%s %s %s\" %d \"%s\"\n",
+       fmt.Printf("%s %s \"%s %+q %s\" %d \"%s\"\n",
                r.RemoteAddr, host, r.Method, r.URL.Path, r.Proto,
                status, r.Header.Get("User-Agent"),
        )