Browse Source

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

tags/v0.7.8
alantong 6 years ago
parent
commit
179aace121
  1. 2
      debug/http.go

2
debug/http.go

@ -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))
}

Loading…
Cancel
Save