neilpang 8 years ago
parent
commit
fd77e463a1
1 changed files with 4 additions and 1 deletions
  1. 4 1
      dnsapi/dns_aws.sh

+ 4 - 1
dnsapi/dns_aws.sh

@@ -220,7 +220,10 @@ aws_rest() {
   _H2="Authorization: $Authorization"
   _H2="Authorization: $Authorization"
   _debug _H2 "$_H2"
   _debug _H2 "$_H2"
 
 
-  url="$AWS_URL/$ep?$qsr"
+  url="$AWS_URL/$ep"
+  if [ "$qsr" ]; then
+    url="$AWS_URL/$ep?$qsr"
+  fi
 
 
   if [ "$mtd" = "GET" ]; then
   if [ "$mtd" = "GET" ]; then
     response="$(_get "$url")"
     response="$(_get "$url")"