Previously, the user agent passed to Gollum was hardcoded as "Scrapy." This pull request updates the code to dynamically retrieve the user agent from the request. With this enhancement, placing Crawly.Middleware.UserAgent before Crawly.Middleware.RobotsTxt allows for checking whether the user agent is permitted to crawl the page.
Argh, I messed up. I forgot that all commits to my forks master branch end up in this PR. Maybe first consider my Gollum PR and after that I'll sort this one out.
Previously, the user agent passed to Gollum was hardcoded as "Scrapy." This pull request updates the code to dynamically retrieve the user agent from the request. With this enhancement, placing Crawly.Middleware.UserAgent before Crawly.Middleware.RobotsTxt allows for checking whether the user agent is permitted to crawl the page.