summaryrefslogtreecommitdiff
path: root/gopher/client.go
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2024-01-10 11:06:53 -0700
committertjp <tjp@ctrl-c.club>2024-01-10 11:10:09 -0700
commitb6c0ba24cf5902e6bafff4243979bb12010aa142 (patch)
tree39034f7f4a41ff08393445f33769d262e4644c8f /gopher/client.go
parentb09d2de941b65956eb7c748e3ce44ff568d4c2af (diff)
add a *Request to Response
Diffstat (limited to 'gopher/client.go')
-rw-r--r--gopher/client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gopher/client.go b/gopher/client.go
index a5c4228..0ae1730 100644
--- a/gopher/client.go
+++ b/gopher/client.go
@@ -52,7 +52,7 @@ func (c Client) RoundTrip(request *types.Request) (*types.Response, error) {
return nil, err
}
- return &types.Response{Body: bytes.NewBuffer(response)}, nil
+ return &types.Response{Body: bytes.NewBuffer(response), Request: request}, nil
}
// Fetch parses a URL string and fetches the gopher resource.