archive.is: Unset PROXY, use http-user-agent. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 4ee167daa6614875d9c4b9d3464bfc08247dc40b
(DIR) parent dd9c2ee5965b4bbcb5e09f89c261fdc696cb96e8
(HTM) Author: eidolon <?>
Date: Tue, 15 Oct 2024 11:10:00 -0400
archive.is: Unset PROXY, use http-user-agent.
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M annna-message-common | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/annna-message-common b/annna-message-common
@@ -165,7 +165,7 @@ case "${text}" in
fi
;;
*www.wsj.com/*|*www.ft.com/*|*www.nytimes.com/*)
- resp=$(curl -Igsm 10 -o /dev/null -w '%{response_code},%{redirect_url}\n' "https://archive.is/newest/$uri")
+ resp=$(unset -v PROXY; curl -A "$(http-user-agent)" -Igsm 10 -o /dev/null -w '%{response_code},%{redirect_url}\n' "https://archive.is/newest/$uri")
respcode="${resp%%,*}"
case "$respcode" in
302)