summaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2024-01-15 13:41:09 -0700
committertjp <tjp@ctrl-c.club>2024-01-15 13:41:09 -0700
commite111dae3f83831874d83ffe0349839a1cffcbaf7 (patch)
tree9964e4b277c51691e7a5969bd59462300a621eba /client.go
parent751f423f11bf6fd848a074b2575cc00fdb6c3bad (diff)
add response.Request in the http clientHEADv1.6.2main
Diffstat (limited to 'client.go')
-rw-r--r--client.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/client.go b/client.go
index 8119200..f3ec6a5 100644
--- a/client.go
+++ b/client.go
@@ -141,9 +141,10 @@ func (hc httpClient) RoundTrip(ctx context.Context, request *Request) (*Response
}
return &Response{
- Status: Status(hresp.StatusCode),
- Meta: hresp,
- Body: hresp.Body,
+ Status: Status(hresp.StatusCode),
+ Meta: hresp,
+ Body: hresp.Body,
+ Request: request,
}, nil
}