1
0
mirror of https://github.com/golang/go synced 2024-11-12 10:00:25 -07:00

cmd/godoc: fix format strings.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7309061
This commit is contained in:
David Symonds 2013-02-08 12:00:35 +11:00
parent 30a9957aac
commit 3c1dfb2b9a

View File

@ -24,12 +24,12 @@ func bounceToPlayground(w http.ResponseWriter, req *http.Request) {
resp, err := client.Post(url, req.Header.Get("Content-type"), req.Body)
if err != nil {
http.Error(w, "Internal Server Error", 500)
c.Errorf("making POST request:", err)
c.Errorf("making POST request: %v", err)
return
}
defer resp.Body.Close()
if _, err := io.Copy(w, resp.Body); err != nil {
http.Error(w, "Internal Server Error", 500)
c.Errorf("making POST request:", err)
c.Errorf("making POST request: %v", err)
}
}