diff --git a/main.go b/main.go index 6cf0db4..919169e 100644 --- a/main.go +++ b/main.go @@ -106,10 +106,9 @@ func NewDashboardRetryHandler(list *CaptureList, next http.HandlerFunc) http.Han } var reqBody []byte capture.Req.Body, reqBody = drain(capture.Req.Body) - r, _ := http.NewRequest(capture.Req.Method, capture.Req.URL.String(), capture.Req.Body) + r, _ := http.NewRequest(capture.Req.Method, capture.Req.URL.String(), bytes.NewReader(reqBody)) r.Header = capture.Req.Header next.ServeHTTP(rw, r) - capture.Req.Body = ioutil.NopCloser(bytes.NewReader(reqBody)) } }