Skip to content
This repository
Browse code

change header payload from associative array to flat array

  • Loading branch information...
commit 1e4f596d51ae29cf9fea13ae501c1b749239f432 1 parent b168262
Jon Guymon authored
2  lib/new_relic/agent/browser_monitoring.rb
@@ -102,7 +102,7 @@ def insert_mobile_response_header(request, response)
102 102
 
103 103
           response['X-NewRelic-Beacon-Url'] = beacon_url(request)
104 104
 
105  
-          payload = %[{"application_id":"#{config.application_id}","transaction_name":"#{obfuscate(config, browser_monitoring_transaction_name)}","queue_time":#{browser_monitoring_queue_time},"app_time":#{browser_monitoring_app_time}}]
  105
+          payload = %[ ["#{config.application_id}","#{obfuscate(config, browser_monitoring_transaction_name)}",#{browser_monitoring_queue_time},#{browser_monitoring_app_time}] ]
106 106
           response['X-NewRelic-App-Server-Metrics'] = payload
107 107
         end
108 108
       end

0 notes on commit 1e4f596

Please sign in to comment.
Something went wrong with that request. Please try again.