Skip to content

Commit

Permalink
Update petstore.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Winkler authored Dec 28, 2020
1 parent d97a911 commit 54f8f4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions petstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ func (c *Client) do(ctx context.Context, req *http.Request, v interface{}) error
// Add the context to the request.
req = req.WithContext(ctx)
log.Printf("[DEBUG] go-petstore request: %v", req)

// wake up the function?
tempReq, _ := c.newRequest("GET","pets",nil)
c.http.Do(tempReq)

// Execute the request and check the response.
resp, err := c.http.Do(req)
if err != nil {
Expand Down

0 comments on commit 54f8f4d

Please sign in to comment.