Use a different user-agent. (#4313)

Signed-off-by: dblock <dblock@amazon.com>
This commit is contained in:
Daniel (dB.) Doubrovkine 2023-06-13 16:25:08 -04:00 committed by GitHub
parent 9209c0a6bc
commit f05de0e5f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@ module Jekyll::LinkChecker
@external_link_checker = LinkChecker::Typhoeus::Hydra::Checker.new( @external_link_checker = LinkChecker::Typhoeus::Hydra::Checker.new(
logger: Jekyll.logger, logger: Jekyll.logger,
hydra: { max_concurrency: 2 }, hydra: { max_concurrency: 2 },
retries: 3 retries: 3,
user_agent: 'OpenSearch Documentation Website Link Checker/1.0'
) )
@external_link_checker.on :failure, :error do |result| @external_link_checker.on :failure, :error do |result|