fixed bug with parsing mime types
This commit is contained in:
parent
34645398ec
commit
558401fa3b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user