mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
FIX: error in response body to blocked crawlers, showing 500 Internal Server Error with status of 403
This commit is contained in:
@ -201,7 +201,7 @@ module Middleware
|
||||
|
||||
if helper.blocked_crawler?
|
||||
env["discourse.request_tracker.skip"] = true
|
||||
return [403, {}, "Crawler is not allowed!"]
|
||||
return [403, {}, ["Crawler is not allowed!"]]
|
||||
end
|
||||
|
||||
if helper.should_force_anonymous?
|
||||
|
Reference in New Issue
Block a user