archive.is: Unset PROXY, use http-user-agent. - annna - Annna the nice friendly… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 4ee167daa6614875d9c4b9d3464bfc08247dc40b | |
parent dd9c2ee5965b4bbcb5e09f89c261fdc696cb96e8 | |
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 <[email protected]> | |
Diffstat: | |
M annna-message-common | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
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},%{redir… | |
+ resp=$(unset -v PROXY; curl -A "$(http-user-agent)" -Igsm 10 -… | |
respcode="${resp%%,*}" | |
case "$respcode" in | |
302) |