aws/request: make-operation->request: Include content hash header.
authorRicardo Wurmus <rekado@elephly.net>
Tue, 7 Jul 2020 19:28:01 +0000 (21:28 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Tue, 7 Jul 2020 19:28:01 +0000 (21:28 +0200)
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

index e0cf58fd6f69a4a0806c550e5b55c3fd8b7c96e0..764ed43390292f43bc1ccbbe3f7af647d0461330 100644 (file)
     (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