From 179aace121a921d59b44e4c26553c1901fe728d8 Mon Sep 17 00:00:00 2001 From: alantong Date: Mon, 7 Jan 2019 17:59:31 +0800 Subject: [PATCH] solve the oom when send the big file with the debug request header option --- debug/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug/http.go b/debug/http.go index 605918f..a0c012a 100644 --- a/debug/http.go +++ b/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)) }