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

Commit

Permalink
remove req0
Browse files Browse the repository at this point in the history
  • Loading branch information
optman committed Apr 4, 2019
1 parent 8d0ddc0 commit 4ecd1fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ func (e *Error) Error() string {

func (r *Request) Send(c *http.Client) (*Response, error) {
url := r.getURL()
req0, err := http.NewRequest("POST", url, r.Body)
req, err := http.NewRequest("POST", url, r.Body)
if err != nil {
return nil, err
}

req := req0.WithContext(r.Ctx)
req = req.WithContext(r.Ctx)

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

0 comments on commit 4ecd1fa

Please sign in to comment.