solve the oom when send the big file with the debug request header option
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user