Browse Source
Merge pull request #10 from toranger/master
solve the oom when send the big file with the debug request header option
tags/v0.7.8
toranger
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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)) |
|
|
|
} |
|
|
|
|
|
|
|