Commit 3c1dfb2b authored by David Symonds's avatar David Symonds

cmd/godoc: fix format strings.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7309061
parent 30a9957a
...@@ -24,12 +24,12 @@ func bounceToPlayground(w http.ResponseWriter, req *http.Request) { ...@@ -24,12 +24,12 @@ func bounceToPlayground(w http.ResponseWriter, req *http.Request) {
resp, err := client.Post(url, req.Header.Get("Content-type"), req.Body) resp, err := client.Post(url, req.Header.Get("Content-type"), req.Body)
if err != nil { if err != nil {
http.Error(w, "Internal Server Error", 500) http.Error(w, "Internal Server Error", 500)
c.Errorf("making POST request:", err) c.Errorf("making POST request: %v", err)
return return
} }
defer resp.Body.Close() defer resp.Body.Close()
if _, err := io.Copy(w, resp.Body); err != nil { if _, err := io.Copy(w, resp.Body); err != nil {
http.Error(w, "Internal Server Error", 500) http.Error(w, "Internal Server Error", 500)
c.Errorf("making POST request:", err) c.Errorf("making POST request: %v", err)
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment