mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user