[Nagvis-checkins] SF.net Git: nagvis: Setting NagVis user agent to handle different nagvis verions
Brought to you by:
larsi-
From: lars <la...@us...> - 2012-05-13 09:35:12
|
Author: Lars Michelsen <lm...@la...> Date: Sun May 13 11:19:58 2012 +0200 Committer: Lars Michelsen <lm...@la...> Commit-Date: Sun May 13 11:19:58 2012 +0200 Setting NagVis user agent to handle different nagvis verions correctly in webservice --- share/server/core/sources/geomap.php | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/share/server/core/sources/geomap.php b/share/server/core/sources/geomap.php index f2300f0..433994f 100644 --- a/share/server/core/sources/geomap.php +++ b/share/server/core/sources/geomap.php @@ -27,7 +27,8 @@ function geomap_get_contents($url) { try { $opts = array( 'http' => array( - 'timeout' => cfg('global', 'http_timeout'), + 'timeout' => cfg('global', 'http_timeout'), + 'user_agent' => 'NagVis '.CONST_VERSION.' geomap', ) ); |