Commit 0630140b authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: add hack for construct full url from related Location

parent a6bc7c73
......@@ -1021,6 +1021,10 @@ url_get_real_url()
local loc
for loc in $(url_get_header "$URL" "Location" | tac | sed -e 's| .*||') ; do
# hack for construct full url from related Location
if echo "$loc" | grep -q "^/" ; then
loc="$(concatenate_url_and_filename "$(get_host_only "$URL")" "$loc")"
fi
if ! is_strange_url "$loc" ; then
echo "$loc"
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment