remove unnecessary line
This commit is contained in:
parent
6577238fca
commit
8529ec7c74
3
main.go
3
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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue