Commit 7fd73a77 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: fix get real url again

parent 0c330341
......@@ -975,7 +975,7 @@ url_get_real_url()
[ -n "$MADEURL" ] && [ "$MADEURL" = "$URL" ] && echo "$URL" && return
local loc
for loc in $(url_get_header "$URL" "Location" | tac | sed -e 's| ||') ; do
for loc in $(url_get_header "$URL" "Location" | tac | sed -e 's| .*||') ; do
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