Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-08-09 16:15:39 +0400
committermattab <matthieu.aubry@gmail.com>2013-08-09 16:15:39 +0400
commitc64939a13ec5ea9dae9f9d3ad2c290241080e226 (patch)
tree2350e1887c1368fc1f35158cedf788a845e70a56 /misc
parent3fe05d340f427b15f9a3db2b5498f77a2cb350a0 (diff)
Fixes #4072 thanks for the patch
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/log-analytics/import_logs.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py
index 5869a2bd87..944795bbc6 100755
--- a/misc/log-analytics/import_logs.py
+++ b/misc/log-analytics/import_logs.py
@@ -763,6 +763,7 @@ class Piwik(object):
elif not isinstance(data, basestring) and headers['Content-type'] == 'application/json':
data = json.dumps(data)
+ headers['User-Agent'] = 'Piwik/LogImport'
request = urllib2.Request(url + path, data, headers)
response = urllib2.urlopen(request)
result = response.read()