Skip to content

Commit dff9c79

Browse files
authored
Merge pull request #327 from gonX/html-proofer-ignore-status-code-im-a-teapot
HTML Proofer: Ignore status code 418
2 parents 6e6ba22 + 9533e01 commit dff9c79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Rakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ task :htmlproofer do
1414
# /Plugins.html can misbehave here in case of GitHub README.md anchors
1515
# because of User-Agent handling, and changing User-Agent causes other
1616
# unwanted side effects
17-
check_external_hash: false
17+
check_external_hash: false,
18+
# status code 418 is sometimes returned by webservers performing anti-scrape methods, so it
19+
# should assume the resource exists instead
20+
ignore_status_codes: [ 418 ],
1821
}
1922

2023
HTMLProofer.check_directory(compiledSitePath, options).run

0 commit comments

Comments
 (0)