Skip to content

Commit a513960

Browse files
authored
fix: set body back after io.Copy it to buffer (#38)
1 parent d16afd4 commit a513960

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

request.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ func request(method, url string, opts *Options) (*Response, error) {
148148
return nil, err
149149
}
150150
stats.BodySize = int(n)
151+
opts.Body = buf
151152
}
152153
return do(method, url, opts, stats)
153154
}

0 commit comments

Comments
 (0)