1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-03 10:43:58 +02:00

Set context for S3 requests

This commit is contained in:
DarthSim 2023-03-20 18:56:24 +03:00
parent d2cca005d3
commit dde81b49f7

View File

@ -62,6 +62,7 @@ func (t transport) RoundTrip(req *http.Request) (resp *http.Response, err error)
}
s3req, _ := t.svc.GetObjectRequest(input)
s3req.SetContext(req.Context())
if err := s3req.Send(); err != nil {
if s3req.HTTPResponse != nil && s3req.HTTPResponse.Body != nil {