make sure 1 is a string

This commit is contained in:
Sam 2016-10-27 18:08:01 +11:00
parent 3e7190866a
commit 497ff76a67
1 changed files with 1 additions and 1 deletions

View File

@ -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