Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transport/http: Fix handling of nil and http.NoBody in Request.Build #356

Merged
merged 1 commit into from
Mar 7, 2022

Commits on Feb 25, 2022

  1. transport/http: Fix handling of nil and http.NoBody in Request.Build

    Updates the smithy-go HTTP Request to correctly handle building the
    request to an http.Request. HTTP Client Request must not have a non-nil
    Body if the ContentLength is 0. The client will treat this case as
    unknown length and use "transfer-encoding": chunked. This breaks Amazon
    S3 operations like PutObject which require content-length and do not
    support "transfer-encoding: chunked"
    
    Related to aws/aws-sdk-go-v2#1583
    jasdel committed Feb 25, 2022
    Configuration menu
    Copy the full SHA
    6630cb6 View commit details
    Browse the repository at this point in the history