mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
make code a bit safer
This commit is contained in:
parent
8a477f1857
commit
3e7190866a
@ -78,7 +78,9 @@ 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]
|
if result && (headers=result[1])
|
||||||
|
headers["X-Discourse-TrackView"] = 1 if data[:track_view]
|
||||||
|
end
|
||||||
log_later(data,host)
|
log_later(data,host)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user