Introduction
Introduction Statistics Contact Development Disclaimer Help
archive.is: Increase request timeout. Print bad response. - annna - Annna the n…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit e433f958446c5d05dc29d2dbd71ce53f30a51bdc
parent 8e2cdd021b4d2e0ed49fdee7af7f654d2dbfdd9a
Author: eidolon <?>
Date: Tue, 15 Oct 2024 09:01:47 -0400
archive.is: Increase request timeout. Print bad response.
Signed-off-by: Annna Robert-Houdin <[email protected]>
Diffstat:
M annna-message-common | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -165,11 +165,16 @@ case "${text}" in
fi
;;
*www.wsj.com/*|*www.ft.com/*|*www.nytimes.com/*)
- resp=$(curl -Igsm 3 -o /dev/null -w '%{response_code},%{redire…
- if [ "${resp%%,*}" = "302" ]; then
- nuri="${resp##*,}"
- nuris="archive: $nuri"
- fi
+ resp=$(curl -Igsm 10 -o /dev/null -w '%{response_code},%{redir…
+ respcode="${resp%%,*}"
+ case "$respcode" in
+ 302)
+ nuri="${resp##*,}"
+ nuris="archive: $nuri"
+ ;;
+ *)
+ nuris="archive: $respcode"
+ esac
;;
*www.reddit.com*)
nuri="$(printf '%s\n' "${uri}" | sed "s;www.reddit.com;old.red…
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.