solve the oom when send the big file with the debug request header option

This commit is contained in:
alantong
2019-01-07 17:59:31 +08:00
parent a9d855e752
commit 179aace121

View File

@@ -30,7 +30,7 @@ func (t *DebugRequestTransport) RoundTrip(req *http.Request) (*http.Response, er
}
if t.RequestHeader {
a, _ := httputil.DumpRequestOut(req, t.RequestBody)
a, _ := httputil.DumpRequest(req, t.RequestBody)
fmt.Fprintf(w, "%s\n\n", string(a))
}