Open adri opened 1 month ago
cc @rapphil it would be great, if we get some help here.
@rapphil We tried to understand the problem.
What We Did
Checked Body Reading:
We ensured that the request body was read and reset correctly using readDownStreamRequestBody
.
Verified Header Handling:
We made sure that Content-Length
was set correctly based on the actual body length and that Transfer-Encoding
was handled properly.
Reviewed Signing Process:
We examined the sign method to ensure it didn’t alter the request body or headers in a way that could cause the mismatch.
Verified Request Handling:
We looked into how the ProxyClient was creating and sending requests to ensure consistent body and header handling. Conclusion
Issue: The mismatch between Content-Length and the actual body length remains unresolved.
cc @alvinlin123
Our goal is to use this library in a container to proxy file upload requests to S3. When doing so, we run into an error
http: ContentLength=... with Body length 0
. Any tips on how to resolve this?Steps to reproduce
Start image
Send image
Responds with
View debug logs