summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-03-02 22:56:46 +0100
committerRicardo Wurmus <rekado@elephly.net>2021-03-02 22:56:46 +0100
commit79678762ec1a77376c36aa5097d1951516ecc0b7 (patch)
tree28dd3560b14baaa11deb7016fb14d483ab4f146f
parent32f98237b6df1f39acf3d8daba3daf4be2a90435 (diff)
aws/request: make-operation->request: Always append request body.
* aws/request.scm (make-operation->request): Remove match expression.
-rw-r--r--aws/request.scm6
1 files changed, 1 insertions, 5 deletions
diff --git a/aws/request.scm b/aws/request.scm
index 8ecb543..630112e 100644
--- a/aws/request.scm
+++ b/aws/request.scm
@@ -329,11 +329,7 @@ corresponding value in INPUT."
(lambda ()
(http-request (string-append endpoint canonical-uri)
#:method (string->symbol method)
- #:body
- (match method
- ("POST"
- (string->utf8 request-parameters))
- (_ ""))
+ #:body (string->utf8 request-parameters)
#:headers new-headers))
(lambda (response body)
(let ((server-text (match body