Closed tamaloa closed 11 months ago
Sorry for the failing tests - will look into those (suppose it's the changed exception message)
Tests should now be green again
And now i also checked for style.
Note I excluded test files from rubocop length check in a separate commit in case you want to cherry pick (and fix the length by dividing the tests).
This adds a default User-Agent to requests when fetching remote sitemaps. Also, if an error occurs, the response code of the sitemap url is shown.
In our experience there exist many webservers which do not respond with their sitemap if no User-Agent is set. These are a few example sites for which the sitemap previously was NOT retrievable:
With the attached change we could successfull retrieve sitemaps for above examples.