fixed bug with parsing mime types

This commit is contained in:
Emma Tebibyte 2022-09-02 04:48:19 -04:00
parent 34645398ec
commit 558401fa3b
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
echo "Determining MIME type of $1:"
MIME=$(curl -I -s "$1" | sed -n -e 's/^content-type: //p' | sed -n -e 's/;.\+//p' | tr -d '\r')
MIME=$(curl -I -s "$1" | sed -n -e 's/^content-type: //p' | sed -e 's/;.\+//g' | tr -d '\r')
echo $MIME