Browse Source

add 'Accept' header

pull/4409/head
Arash Hatami 2 years ago
parent
commit
c07db3aa14
No known key found for this signature in database GPG Key ID: D3D9E8CB2E49731F
  1. 1
      dnsapi/dns_arvan.sh

1
dnsapi/dns_arvan.sh

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

Loading…
Cancel
Save