summaryrefslogtreecommitdiff
path: root/sources/wiki/lib
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-11 10:04:44 +0100
committerJochen Topf <jochen@topf.org>2013-01-11 10:04:44 +0100
commit61b0fe938df7d8ddf65671222ac618a637059460 (patch)
treed77ee6ca964024abb7c5ad374920791c61735d69 /sources/wiki/lib
parent34fbbac684e0636c06442760f1d3b409959ec52a (diff)
downloadtaginfo-61b0fe938df7d8ddf65671222ac618a637059460.tar
taginfo-61b0fe938df7d8ddf65671222ac618a637059460.tar.gz
Consolidate user-agent setting in mediawiki lib
Diffstat (limited to 'sources/wiki/lib')
-rw-r--r--sources/wiki/lib/mediawikiapi.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/wiki/lib/mediawikiapi.rb b/sources/wiki/lib/mediawikiapi.rb
index 293aa6f..d799041 100644
--- a/sources/wiki/lib/mediawikiapi.rb
+++ b/sources/wiki/lib/mediawikiapi.rb
@@ -8,7 +8,7 @@
#
#------------------------------------------------------------------------------
#
-# Copyright (C) 2012 Jochen Topf <jochen@remote.org>
+# Copyright (C) 2013 Jochen Topf <jochen@remote.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -37,6 +37,7 @@ module MediaWikiAPI
@port = port
@path = path
@headers = {}
+ add_header('User-agent', 'taginfo/1.0 (http://wiki.osm.org/wiki/Taginfo)')
end
def add_header(name, value)