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

Sign x-amz-content-sha256 header #475

Open
Serzh470 opened this issue Jan 15, 2022 · 1 comment
Open

Sign x-amz-content-sha256 header #475

Serzh470 opened this issue Jan 15, 2022 · 1 comment

Comments

@Serzh470
Copy link

Hi!

I've tried to use evaporate to upload files from django admin (inside django-s3direct package) and have faced the problem, that request header x-amz-content-sha256 is not signed. Is any solutions to add it via evaporate interface?

server response is

<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>AccessDenied</Code>
  <Message>There were headers present in the request which were not signed</Message>
  <Resource>/osite-test/uploads/videos/BigBuck.mp4?uploads</Resource>
  <RequestId>e14d24f1175a9e69</RequestId>
  <HeadersNotSigned>x-amz-content-sha256</HeadersNotSigned>
</Error>
@Serzh470
Copy link
Author

Serzh470 commented Jan 15, 2022

I've solved it with adding a line

addHeader('x-amz-content-sha256',  this.getPayloadSha256Content());

in method AwsSignatureV4.prototype.canonicalHeaders, but maybe there is a smater way to fix it.

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

1 participant