mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
make sure 1 is a string
This commit is contained in:
parent
3e7190866a
commit
497ff76a67
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user