Skip to content

Commit 144f62f

Browse files
committed
updated imports, now using extractBody function instead of dumpresponse
1 parent dd949d8 commit 144f62f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

models.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"fmt"
88
"io"
99
"net/http"
10-
"net/http/httputil"
1110

1211
log "github.com/Sirupsen/logrus"
1312
"github.com/elazarl/goproxy"
@@ -86,9 +85,7 @@ func (d *DBClient) captureRequest(req *http.Request) (*http.Response, error) {
8685
resp, err := d.doRequest(req)
8786

8887
if err == nil {
89-
90-
// getting response body
91-
respBody, err := httputil.DumpResponse(resp, true)
88+
respBody, err := extractBody(resp)
9289
if err != nil {
9390
// copying the response body did not work
9491
if err != nil {

0 commit comments

Comments
 (0)