2
0
Fork 0
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:
Sam 2016-10-27 16:48:27 +11:00
parent 9848e26190
commit 8a477f1857

View file

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