Skip to content

test-links: Set specific User-Agent to resolve problems with links to openwrt.org

Lukas Jelinek requested to merge test-links into master

The current test-links.sh fails to check links to openwrt.org. The reason is that this server dislikes wget and allows only one request for long time from this program (subsequent requests are denied with 429 Too Many Requests).

This patch changes the User-Agent header to something like "Firefox on Windows". It's an ugly hack but other tested solutions (like delayed retries or delays between requests) didn't work.

Resolves #94 (closed)

Merge request reports