* proxy redirects are partly urlencoded now

merge-requests/2/head
Dominika Liberda 2021-06-01 23:56:11 +02:00
parent 1ff1d08852
commit 988e290eed
1 changed files with 1 additions and 1 deletions

View File

@ -16,4 +16,4 @@ while read line; do
fi
done <<< "$headers"
curl -v --http1.1 "$url" "$params" -D /dev/stdout | grep -aiv "Transfer-Encoding: chunked" | sed -E 's@Location: @Location: '"$proxy_url"'?'"${cfg[proxy_param]}"'=@'
curl -v --http1.1 "$url" "$params" -D /dev/stdout | grep -aiv "Transfer-Encoding: chunked" | sed -E '/Location/s/\?/%3f/g;/Location/s/\&/%26/g;s@Location: @Location: '"$proxy_url"'?'"${cfg[proxy_param]}"'=@'