flyby: set ContentLength on GetObjectOutput also

This commit is contained in:
Wayne Warren 2020-11-04 15:03:52 -06:00
parent a8c352063e
commit bdbf05f6f8

View File

@ -599,6 +599,10 @@ var setContentLength = request.NamedHandler{
if r.HTTPResponse.ContentLength > 0 {
v.SetContentLength(r.HTTPResponse.ContentLength)
}
case *s3.GetObjectOutput:
if r.HTTPResponse.ContentLength > 0 {
v.SetContentLength(r.HTTPResponse.ContentLength)
}
}
},
}