remove unnecessary line

This commit is contained in:
Fabricio 2018-12-02 14:57:32 -02:00
parent 6577238fca
commit 8529ec7c74

View file

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