Set a custom user agent for the faraday http client
This commit is contained in:
parent
1bc6c2e1dc
commit
3c00ed8dc3
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue