pfefferle / webfinger-cli

A WebFinger CLI script
https://packagist.org/packages/pfefferle/webfinger-cli
3 stars 0 forks source link

User Agent not set #18

Closed dotsam closed 1 year ago

dotsam commented 1 year ago

The Net_WebFinger has a bug where the user agent parameter is set incorrectly (user-agent instead of user_agent), and thus no user-agent string is set.

https://github.com/pear/Net_WebFinger/blob/cf6c397e5cea98f933d8d57243be408d4d47e714/src/Net/WebFinger.php#L456-L465

Some webfinger endpoints (notably gotosocial in its default config) will not respond to a request without a user agent header.

I've tried reporting this on the pear bugtracker for the project, but I'm not getting the confirmation email, so I don't know if it will go through.

(I'll somewhat rudely ping @cweiske here to see if they are able to fix this bug and cut a new release)

cweiske commented 1 year ago

Fixed in Net_Webfinger 0.4.1

dotsam commented 1 year ago

Thanks for the fix @cweiske and thanks for the quick dep update @pfefferle!

Tested and confirmed working against a GoToSocial instance.