Merge branch 'master' into nymkappa/fix-block-api-response-code

This commit is contained in:
mononaut 2025-03-29 10:43:22 +08:00 committed by GitHub
commit ac2d6d0186
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ hostname=$(hostname)
heat()
{
echo "$1"
curl -i -s "$1" | head -1
curl -o /dev/null -s "$1"
}
heatURLs=(

View File

@ -6,19 +6,19 @@ slugs=(`curl -sSL https://${hostname}/api/v1/mining/pools/3y|jq -r -S '(.pools[]
warmSlurp()
{
echo "$1"
curl -i -s -H 'User-Agent: Googlebot' "$1" | head -1
curl -o /dev/null -s -H 'User-Agent: Googlebot' "$1"
}
warmUnfurl()
{
echo "$1"
curl -i -s -H 'User-Agent: Twitterbot' "$1" | head -1
curl -o /dev/null -s -H 'User-Agent: Twitterbot' "$1"
}
warm()
{
echo "$1"
curl -i -s "$1" | head -1
curl -o /dev/null -s "$1"
}
warmSlurpURLs=(