when writing cache, remove elements from the user agents list. also return a message and content type when blocking a crawler.

This commit is contained in:
Neil Lalonde
2018-03-27 13:44:14 -04:00
parent a84bb81ab5
commit 4d12ff2e8a
3 changed files with 5 additions and 5 deletions

View File

@ -291,7 +291,7 @@ describe Middleware::RequestTracker do
def expect_blocked_response(status, _, response)
expect(status).to eq(403)
expect(response).to be_blank
expect(response).to eq(['Crawler is not allowed'])
end
it "applies whitelisted_crawler_user_agents correctly" do