summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-08-06 20:42:15 +0200
committerAki <please@ignore.pl>2020-08-06 20:42:15 +0200
commit7517212644c3978ef2c7bd0dc2d8a4dde88e7e42 (patch)
tree5bd951b7b4f2992d8d283f1aa2d61f73a37f245c
parentd8846adcdfcb6b8e5f86cdc80274b799f4588feb (diff)
downloadbrowse-7517212644c3978ef2c7bd0dc2d8a4dde88e7e42.zip
browse-7517212644c3978ef2c7bd0dc2d8a4dde88e7e42.tar.gz
browse-7517212644c3978ef2c7bd0dc2d8a4dde88e7e42.tar.bz2
Implemented base address scrapping
-rwxr-xr-xphttp1
1 files changed, 1 insertions, 0 deletions
diff --git a/phttp b/phttp
index 79e5df5..d74ac9b 100755
--- a/phttp
+++ b/phttp
@@ -16,6 +16,7 @@ get_with_arguments() {
}
local META
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
return