mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
make sure 1 is a string
This commit is contained in:
parent
3e7190866a
commit
497ff76a67
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue