following redirect from provider on fetch

This commit is contained in:
Rudis Muiznieks 2021-08-29 18:03:25 -05:00
parent bff5b6d91f
commit 6b7685cb24
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ fetch() (
fi
fetch_provider=$(get_dotplan_provider "$fetch_email" "$relay_provider")
curl_url="$fetch_provider/plan/$(url_encode "$fetch_email")"
curl_resp=$($curl -s -H 'Accept: application/json' "$curl_url");
curl_resp=$($curl -s -L -H 'Accept: application/json' "$curl_url");
plan_content=
if ! check_curl_resp "$curl_resp" ".plan" plan_content; then exit 1; fi
if [ -n "$fetch_pubkey" ]; then