From b6c0ba24cf5902e6bafff4243979bb12010aa142 Mon Sep 17 00:00:00 2001 From: tjp Date: Wed, 10 Jan 2024 11:06:53 -0700 Subject: add a *Request to Response --- gopher/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gopher/client.go') 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. -- cgit v1.2.3