From b88ce25b3e8398d28139b5778fa92d6c6699082c Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 7 Jul 2020 21:28:01 +0200 Subject: 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. --- aws/request.scm | 1 + 1 file changed, 1 insertion(+) (limited to 'aws/request.scm') 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 -- cgit v1.2.3