[ci skip] Fix poison fetcher: use HTTP/1.1 for upstream (HTTP/2 hangs)
The Poison Fountain upstream (rnsaffn.com/poison2/) doesn't respond properly over HTTP/2. Force HTTP/1.1 for reliable content fetching. Also fixed NFS directory permissions for non-root curl container.
This commit is contained in:
parent
36cec7c83f
commit
c4db6a9fdb
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ echo "Fetching $FETCH_COUNT poison documents from $POISON_URL"
|
|||
fetched=0
|
||||
for i in $(seq 1 "$FETCH_COUNT"); do
|
||||
OUTPUT="$CACHE_DIR/poison_$(date +%s)_${i}.txt"
|
||||
if curl -sS --compressed -o "$OUTPUT" -m 30 "$POISON_URL" 2>/dev/null; then
|
||||
if curl -sS --http1.1 --compressed -o "$OUTPUT" -m 30 "$POISON_URL" 2>/dev/null; then
|
||||
# Verify file is non-empty
|
||||
if [ -s "$OUTPUT" ]; then
|
||||
fetched=$((fetched + 1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue