Skip to content

Commit

Permalink
Fixes #4072 thanks for the patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Aug 9, 2013
1 parent 3fe05d3 commit c64939a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions misc/log-analytics/import_logs.py
Expand Up @@ -763,6 +763,7 @@ def _call(path, args, headers=None, url=None, data=None):
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()
Expand Down

0 comments on commit c64939a

Please sign in to comment.