You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let putRequest:PutObjectRequest = .init( body:objectData, bucket:"bucket-name", contentType:"image/jpeg", key:objectKey )
I get a SignatureDoesNotMatch error.
Using this code where I omit the contentType parameter: let putRequest:PutObjectRequest = .init( body:objectData, bucket:"bucket-name", key:objectKey )
The request succeeds, but the object put into the bucket as a ContentType of application/x-amz-rest-xml
I looked into the underlying code, and I suspect this is due to the Smoke HTTP client adding a header for both the content type supplied by the caller, and the one added by the framework, which seems invalid.
The text was updated successfully, but these errors were encountered:
Using this code:
let putRequest:PutObjectRequest = .init( body:objectData, bucket:"bucket-name", contentType:"image/jpeg", key:objectKey )
I get a
SignatureDoesNotMatch
error.Using this code where I omit the contentType parameter:
let putRequest:PutObjectRequest = .init( body:objectData, bucket:"bucket-name", key:objectKey )
The request succeeds, but the object put into the bucket as a ContentType of
application/x-amz-rest-xml
I looked into the underlying code, and I suspect this is due to the Smoke HTTP client adding a header for both the content type supplied by the caller, and the one added by the framework, which seems invalid.
The text was updated successfully, but these errors were encountered: