From 7517212644c3978ef2c7bd0dc2d8a4dde88e7e42 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 6 Aug 2020 20:42:15 +0200 Subject: Implemented base address scrapping --- phttp | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.1