diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2020-07-07 21:28:01 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2020-07-07 21:28:01 +0200 |
commit | b88ce25b3e8398d28139b5778fa92d6c6699082c (patch) | |
tree | 278fca6175d7e53b92e80dc40b9b6bdd91b499da | |
parent | bd21180e8843af4a0abc43ceb78bf6c9af25c441 (diff) |
aws/request: make-operation->request: Include content hash header.
The x-amz-content-sha256 is required for S3.
* aws/request.scm (make-operation->request)[headers]: Add
x-amz-content-sha256 header.
-rw-r--r-- | aws/request.scm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/aws/request.scm b/aws/request.scm index e0cf58f..764ed43 100644 --- a/aws/request.scm +++ b/aws/request.scm @@ -175,6 +175,7 @@ (define headers (filter cdr `((content-type . ,content-type) (host . (,host . #f)) + (x-amz-content-sha256 . ,payload-hash) (x-amz-date . ,amz-date) (x-amz-target . ,amz-target)))) (define authorization-header |