Missing Content-Length header for zero size objects #3080
Labels
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
potential-regression
Marking this issue as a potential regression to be checked by team member
Acknowledgements
go get -u github.com/aws/aws-sdk-go-v2/...
)Describe the bug
I recognize it is a tricky one because I'm not working with AWS but with MinIO S3 server.
The issue seems to be that a change occurred since 1.30.4 which was working fine.
Now when I send a zero size object to MinIO, I'm getting the following error :
It seems for some reason, aws-sdk or smithy somewhere decided to skip Content-Length when it's zero
Any idea why that would be ?
Regression Issue
Expected Behavior
Zero file size should be sent with Content-Length: 0
Current Behavior
Content-Length is not sent as part of headers
Reproduction Steps
as this probably works fine with AWS S3, not including code sample.
Possible Solution
No response
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
v1.36.3
Compiler and Version used
go version go1.24.1 darwin/arm64
Operating System and version
macOS 15.4.1
The text was updated successfully, but these errors were encountered: