1
0
mirror of https://github.com/golang/go synced 2024-11-12 06:30:21 -07:00

net/http: fix reference to URL.RawPath in docs

R=go.peter.90, n13m3y3r, gustavo
CC=golang-dev
https://golang.org/cl/5655053
This commit is contained in:
Bjorn Tipling 2012-02-10 22:39:57 -02:00 committed by Gustavo Niemeyer
parent ec87811662
commit 0846e275a8

View File

@ -60,7 +60,7 @@ Handle and HandleFunc add handlers to DefaultServeMux:
http.Handle("/foo", fooHandler)
http.HandleFunc("/bar", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.RawPath))
fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
})
log.Fatal(http.ListenAndServe(":8080", nil))