pa11y / pa11y-ci

Pa11y CI is a CI-centric accessibility test runner, built using Pa11y
https://pa11y.org
GNU Lesser General Public License v3.0
519 stars 63 forks source link

userAgent not set when retrieving sitemap #106

Open nibynool opened 4 years ago

nibynool commented 4 years ago

Expectation

When using the --sitemap <url> option the defaults.userAgent value from the configuration file will be used. If no default.userAgent is defined then the default as defined at https://github.com/pa11y/pa11y#useragent-string will be used.

Actual

pa11y-ci does not set a useragent when retrieving the sitemap url. Instead it uses the node-fetch default value of node-fetch/1.0 (+https://github.com/bitinn/node-fetch).

Additional info

Version: 2.3.0 Sample config file:

{
  "defaults": {
    "userAgent": "My pa11y-ci test runner"
  }
}