X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c38e3d61444d53ce24aea0495ae93a0ccc395c7d..c81d343d8d77a7936624f0a2d7b4df40af305d46:/lib/osm.rb?ds=sidebyside diff --git a/lib/osm.rb b/lib/osm.rb index dd273418e..46f37036f 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -535,7 +535,8 @@ module OSM # Return the HTTP client to use def self.http_client - @http_client ||= Faraday.new(:request => { :timeout => 15 }) + @http_client ||= Faraday.new(:request => { :timeout => 15 }, + :headers => { :user_agent => Settings.server_url }) end # Return the MaxMindDB database handle