mastodon / goldfinger

A Webfinger utility for Ruby
MIT License
32 stars 9 forks source link

Support configuring user agent #7

Closed puckipedia closed 6 years ago

puckipedia commented 6 years ago

see tootsuite/mastodon#6294

redtachyons commented 6 years ago

I would like to work on this, what is the preferred api to do this

Goldfinger.finger('acct:gargron@quitter.no', user_agent: '<>')

Or

Goldfinger.finger('acct:gargron@quitter.no', {headers: {user_agent: '<>'}})

Or

Goldfinger.finger('acct:gargron@quitter.no', http_options: {headers: {user_agent: '<>'}})
redtachyons commented 6 years ago

Seems like this case already handled in #6