From 54f8f4ddda9a324eddf279bdab9c06121f0d72cc Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Mon, 28 Dec 2020 09:19:35 -0800 Subject: [PATCH] Update petstore.go --- petstore.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/petstore.go b/petstore.go index dcfc1bb..5a243c9 100644 --- a/petstore.go +++ b/petstore.go @@ -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 {