Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Unified Diff: go/util/http.go

Issue 1704713002: Fix issue security issue in Gold (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Fixed poller_test Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ct/go/poller/poller_test.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/util/http.go
diff --git a/go/util/http.go b/go/util/http.go
index 05d2651a3b2656f5f7fcb16be51794a8de818354..bf6231cd19e1eab7fecaf261fbe5d1f1117a5795 100644
--- a/go/util/http.go
+++ b/go/util/http.go
@@ -164,7 +164,7 @@ func (t *BackOffTransport) RoundTrip(req *http.Request) (*http.Response, error)
func ReportError(w http.ResponseWriter, r *http.Request, err error, message string) {
glog.Errorln(message, err)
if err != io.ErrClosedPipe {
- http.Error(w, fmt.Sprintf("%s %s", message, err), 500)
+ http.Error(w, message, 500)
}
}
« no previous file with comments | « ct/go/poller/poller_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698