From e2e3244eee4429aef9a2fd158beeccdd5bac0b9b Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 7 Aug 2020 23:36:57 +0200 Subject: Fixed extended mime types --- phttp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phttp') diff --git a/phttp b/phttp index d74ac9b..cb6d504 100755 --- a/phttp +++ b/phttp @@ -15,7 +15,7 @@ get_with_arguments() { return } local META - META=$(curl -sL -w "%{content_type} %{url_effective}\n" $@ -o "$PHTTP_CACHE/files/$BASENAME") && { + META=$(curl -sL -w "\"%{content_type}\" %{url_effective}\n" $@ -o "$PHTTP_CACHE/files/$BASENAME") && { META="$(echo $META | rev | cut -d/ -f2- | rev)/" echo "$META $PHTTP_CACHE/files/$BASENAME" echo "$META" > $PHTTP_CACHE/meta/$BASENAME -- cgit v1.1