repo: uritools
action: commit
revision: 
path_from: 
revision_from: 16ddde1a05280ecf2628df5f5c002524e4603e7e:
path_to: 
revision_to: 
git.thebackupbox.net
uritools
git clone git://git.thebackupbox.net/uritools
commit 16ddde1a05280ecf2628df5f5c002524e4603e7e
Author: epoch 
Date:   Sat Jul 29 05:19:24 2023 +0000

    wrong curl flag somehow I never noticed

diff --git a/unshorten.sh b/unshorten.sh
index 8a3b49e8cb18ceb7d3062f37fbd2ef2e8e803d61..
index ..180111f731223d014e02ac632a6c890ea26aea21 100755
--- a/unshorten.sh
+++ b/unshorten.sh
@@ -7,7 +7,7 @@ port="$(printf '%s\n' "$uri" | uricut -P)"

 case "$scheme" in
   http*)
-    curl -Lsi "$1" | grep -i ^Location: | head -n1 | tr -s ' ' | tr -d '\r' | cut '-d ' -f2- | sed 's|^/|'"$scheme"'://'"$domain"'/|g'
+    curl -Isg "$1" | grep -i ^Location: | head -n1 | tr -s ' ' | tr -d '\r' | cut '-d ' -f2- | sed 's|^/|'"$scheme"'://'"$domain"'/|g'
     ;;
   gemini)
     gemini-get "$1" | head -n1 | sed 's/^3[0-9] //g'

-----END OF PAGE-----