aws/request: make-operation->request: Handle empty input values.
authorRicardo Wurmus <rekado@elephly.net>
Tue, 7 Jul 2020 19:27:13 +0000 (21:27 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Tue, 7 Jul 2020 19:27:13 +0000 (21:27 +0200)
* aws/request.scm (make-operation->request)[request-parameters]:
Gracefully deal with empty input values.

aws/request.scm

index faa5e0dc8580196bcfeaa9043628685cb570d36d..e0cf58fd6f69a4a0806c550e5b55c3fd8b7c96e0 100644 (file)
     (define request-parameters
       (string-join (cons* (format #f "Action=~a" operation-name)
                           (format #f "Version=~a" api-version)
-                          (serialize-aws-value input))
+                          (if input
+                              (serialize-aws-value input)
+                              '()))
                    "&"))
 
     (define payload-hash