summaryrefslogtreecommitdiff
path: root/phttp
diff options
context:
space:
mode:
Diffstat (limited to 'phttp')
-rwxr-xr-xphttp2
1 files changed, 1 insertions, 1 deletions
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