mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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
@ -78,6 +78,7 @@ class Middleware::RequestTracker
|
|||||||
host = RailsMultisite::ConnectionManagement.host(env)
|
host = RailsMultisite::ConnectionManagement.host(env)
|
||||||
|
|
||||||
if data
|
if data
|
||||||
|
result[1]["X-Discourse-TrackView"] = 1 if data[:track_view]
|
||||||
log_later(data,host)
|
log_later(data,host)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user