diff options
-rwxr-xr-x | opener | 2 | ||||
-rwxr-xr-x | phttp | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ case "$1" in application/pdf) exec zathura "$3";; image/*) exec sxiv "$3";; - text/html) exec ./viewhtml "$3" "$2";; + text/html*) exec ./viewhtml "$3" "$2";; text/*) exec less "$3";; *) echo "\e[31m$1\e[0m $2 $3";; esac @@ -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 |