diff options
author | tjp <tjp@ctrl-c.club> | 2024-01-10 11:06:53 -0700 |
---|---|---|
committer | tjp <tjp@ctrl-c.club> | 2024-01-10 11:10:09 -0700 |
commit | b6c0ba24cf5902e6bafff4243979bb12010aa142 (patch) | |
tree | 39034f7f4a41ff08393445f33769d262e4644c8f /nex/client.go | |
parent | b09d2de941b65956eb7c748e3ce44ff568d4c2af (diff) |
add a *Request to Response
Diffstat (limited to 'nex/client.go')
-rw-r--r-- | nex/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
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. |