mirror of
https://github.com/golang/go
synced 2024-11-12 09:50:21 -07:00
cmd/godoc: fix format strings.
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7309061
This commit is contained in:
parent
30a9957aac
commit
3c1dfb2b9a
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user