User agent for WebFinger (#7531)
* User agent for WebFinger * local_domain → web_domain * 'http' is away accidentally...
This commit is contained in:
parent
7293b9fc61
commit
919eef3098
3 changed files with 7 additions and 6 deletions
|
@ -48,5 +48,9 @@ module Mastodon
|
|||
source_base_url
|
||||
end
|
||||
end
|
||||
|
||||
def user_agent
|
||||
@user_agent ||= "#{HTTP::Request::USER_AGENT} (Mastodon/#{Version}; +http#{Rails.configuration.x.use_https ? 's' : ''}://#{Rails.configuration.x.web_domain}/)"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue