Replace curl-impersonate-ff109 with curl-impersonate-ff

This commit is contained in:
Kroese 2026-03-23 15:13:48 +01:00 committed by GitHub
parent eeb30fbe37
commit 444d6d3a1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,12 +31,11 @@ jobs:
wget https://github.com/lwthiker/curl-impersonate/releases/download/v0.6.1/curl-impersonate-v0.6.1.x86_64-linux-gnu.tar.gz wget https://github.com/lwthiker/curl-impersonate/releases/download/v0.6.1/curl-impersonate-v0.6.1.x86_64-linux-gnu.tar.gz
tar -xzf curl-impersonate-v0.6.1.x86_64-linux-gnu.tar.gz tar -xzf curl-impersonate-v0.6.1.x86_64-linux-gnu.tar.gz
sudo cp curl-impersonate-ff /usr/local/bin/ sudo cp curl-impersonate-ff /usr/local/bin/
sudo cp curl-impersonate-ff109 /usr/local/bin/
check() { check() {
local url="$1" http local url="$1" http
http=$(curl-impersonate-ff109 -sSL -o /dev/null -w "%{http_code}" --max-time 10 -I -- "$url" 2>&1) || http="000" http=$(curl-impersonate-ff -sSL -o /dev/null -w "%{http_code}" --max-time 10 -I -- "$url" 2>&1) || http="000"
[[ "$http" == 2* ]] && return 0 [[ "$http" == 2* ]] && return 0
http=$(curl-impersonate-ff109 -sSL -o /dev/null -w "%{http_code}" --max-time 10 -r "0-0" -- "$url" 2>&1) || http="000" http=$(curl-impersonate-ff -sSL -o /dev/null -w "%{http_code}" --max-time 10 -r "0-0" -- "$url" 2>&1) || http="000"
[[ "$http" == 2* ]] [[ "$http" == 2* ]]
} }
while IFS= read -r line; do while IFS= read -r line; do