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 --- nex/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nex') diff --git a/nex/client.go b/nex/client.go index 5f53746..4a34903 100644 --- a/nex/client.go +++ b/nex/client.go @@ -46,7 +46,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 builds and sends a nex request, and returns the response. -- cgit v1.2.3