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

s3 presigned_url ignoring :content_type option #721

Closed
MSchmidt opened this issue Feb 27, 2015 · 1 comment
Closed

s3 presigned_url ignoring :content_type option #721

MSchmidt opened this issue Feb 27, 2015 · 1 comment

Comments

@MSchmidt
Copy link

I'm trying to sign the :put_object operation with Aws::S3::Presigner but the :content_type option is ignored. Content-Type is neither in the X-Amz-SignedHeaders parameter not anywhere else to be found.

signer = Aws::S3::Presigner.new

@url = signer.presigned_url(:put_object,
  bucket: bucket,
  key: 'test.jpg',
  acl: 'public-read',
  content_type: 'image/png',
  metadata: { "MetadataKey" => "MetadataValue" }
)

generates:

https://bucket.s3.eu-central-1.amazonaws.com/test.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXXXXXXXXXXXXXXXXXXX%2F20150227%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20150227T010602Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&x-amz-acl=public-read&x-amz-meta-metadatakey=MetadataValue&X-Amz-Signature=e351ac84cfd552968229da20eacdc1d31f854398a9fa6da44f0f982b6e09d2f9

@trevorrowe trevorrowe added the bug label Mar 2, 2015
@trevorrowe
Copy link
Member

Thank you for reporting this issue. I'm looking into why this is being omitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants