Skip to content

Commit f732d69

Browse files
committed
Change 'User-Agent' to make it look real
Some websites reject HTMLProofer's default User-Agent creating false positive results regarding dead links.
1 parent c2f2805 commit f732d69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ services:
1414

1515
install: gem install html-proofer
1616

17-
script: htmlproofer index.html
17+
script: "htmlproofer --only-4xx --typhoeus-config '{\"headers\": {\"User-agent\": \"Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0\"}}' index.html"
1818

1919
before_deploy: docker run --rm -u $(id -u):$(id -g) -v $(pwd):/home astefanutti/decktape /home/index.html /home/Code_versioning_an_introduction_with_Git.pdf
2020

0 commit comments

Comments
 (0)