mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: added X-Discourse-TrackView header
This header is set to 1 if the particular request is a tracked page view
This commit is contained in:
parent
9848e26190
commit
8a477f1857
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ class Middleware::RequestTracker
|
|||
host = RailsMultisite::ConnectionManagement.host(env)
|
||||
|
||||
if data
|
||||
result[1]["X-Discourse-TrackView"] = 1 if data[:track_view]
|
||||
log_later(data,host)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue