Skip to content

Commit 3da1173

Browse files
authored
Merge pull request #31 from Jak2k/patch-1
change user agent #30
2 parents 3833f7f + ca8cb4f commit 3da1173

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/IndieAuth/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public static function setUpHTTP() {
193193
// Unfortunately I've seen a bunch of websites return different content when the user agent is set to something like curl or other server-side libraries, so we have to pretend to be a browser to successfully get the real HTML
194194
if(!isset(self::$http)) {
195195
self::$http = new \p3k\HTTP();
196-
self::$http->set_user_agent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 indieauth-client/' . self::VERSION);
196+
self::$http->set_user_agent('indieauth-client/' . self::VERSION);
197197
self::$http->_timeout = 10;
198198
// You can customize the user agent for your application by calling
199199
// IndieAuth\Client::$http->set_user_agent('Your User Agent String');

0 commit comments

Comments
 (0)