mirror of
https://github.com/golang/go
synced 2024-11-13 18:00:30 -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:
parent
ec87811662
commit
0846e275a8
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user