diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2020-07-07 21:27:13 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2020-07-07 21:27:13 +0200 |
commit | bd21180e8843af4a0abc43ceb78bf6c9af25c441 (patch) | |
tree | bad971fc74806b2c57b68ce0be95bb59ab52be4c | |
parent | fc2c85b579bb56952ff751ce918170ed389b9651 (diff) |
aws/request: make-operation->request: Handle empty input values.
* aws/request.scm (make-operation->request)[request-parameters]:
Gracefully deal with empty input values.
-rw-r--r-- | aws/request.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/aws/request.scm b/aws/request.scm index faa5e0d..e0cf58f 100644 --- a/aws/request.scm +++ b/aws/request.scm @@ -151,7 +151,9 @@ (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 |