mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:34:31 +08:00
correct specs, ensure crawler layout only applies to html
This commit is contained in:
@ -6,6 +6,7 @@ describe Middleware::RequestTracker do
|
||||
def env(opts = {})
|
||||
{
|
||||
"HTTP_HOST" => "http://test.com",
|
||||
"HTTP_USER_AGENT" => "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36",
|
||||
"REQUEST_URI" => "/path?bla=1",
|
||||
"REQUEST_METHOD" => "GET",
|
||||
"rack.input" => ""
|
||||
|
Reference in New Issue
Block a user