Browse Source

add 'Accept' header

Arash Hatami 3 years ago
parent
commit
c07db3aa14
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dnsapi/dns_arvan.sh

+ 2 - 1
dnsapi/dns_arvan.sh

@@ -141,10 +141,11 @@ _arvan_rest() {
     response="$(_post "$data" "$ARVAN_API_URL/$ep" "" "$mtd")"
   elif [ "$mtd" = "POST" ]; then
     export _H2="Content-Type: application/json"
+    export _H3="Accept: application/json"
     _debug data "$data"
     response="$(_post "$data" "$ARVAN_API_URL/$ep" "" "$mtd")"
   else
     response="$(_get "$ARVAN_API_URL/$ep$data")"
   fi
   return 0
-}
+}