mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 02:44:39 +08:00
make sure 1 is a string
This commit is contained in:
@ -79,7 +79,7 @@ class Middleware::RequestTracker
|
||||
|
||||
if data
|
||||
if result && (headers=result[1])
|
||||
headers["X-Discourse-TrackView"] = 1 if data[:track_view]
|
||||
headers["X-Discourse-TrackView"] = "1" if data[:track_view]
|
||||
end
|
||||
log_later(data,host)
|
||||
end
|
||||
|
Reference in New Issue
Block a user