Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 4ecd1fa

Browse files
committed
remove req0
1 parent 8d0ddc0 commit 4ecd1fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

request.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ func (e *Error) Error() string {
110110

111111
func (r *Request) Send(c *http.Client) (*Response, error) {
112112
url := r.getURL()
113-
req0, err := http.NewRequest("POST", url, r.Body)
113+
req, err := http.NewRequest("POST", url, r.Body)
114114
if err != nil {
115115
return nil, err
116116
}
117117

118-
req := req0.WithContext(r.Ctx)
118+
req = req.WithContext(r.Ctx)
119119

120120
// Add any headers that were supplied via the RequestBuilder.
121121
for k, v := range r.Headers {

0 commit comments

Comments
 (0)