Browse Source

acme.sh does not follow Location: headers when using wget

Augustin-FL 6 years ago
parent
commit
63ea3e8d27
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dnsapi/dns_online.sh

+ 1 - 1
dnsapi/dns_online.sh

@@ -185,7 +185,7 @@ _online_create_TXT_record() {
   # Note : the normal, expected response SHOULD be "Unknown method".
   # this happens because the API HTTP response contains a Location: header, that redirect
   # to an unknown online.net endpoint.
-  if [ "$?" != "0" ] || _contains "$response" "Unknown method"; then
+  if [ "$?" != "0" ] || _contains "$response" "Unknown method" || _contains "$response" "\$ref"; then
     return 0
   else
     _err "error $response"