indiewebify-me icon indicating copy to clipboard operation
indiewebify-me copied to clipboard

Update guzzle

Open jbeales opened this issue 2 years ago • 0 comments

When trying to debug why I was getting a 406 response when testing my h-card, (like in #81, but I didn't have the firewall problem), I couldn't run the test because the Guzzle\Http\Client has been replaced by GuzzleHttp\Client, and composer.json was set to install the latest Guzzle.

This PR updates the httpGet() function to use Guzzle 7, and makes related changes to keep other functionality, (mostly casting Guzzle response bodies as Strings, but also making the "effective URL" available).

jbeales avatar Jun 24 '23 03:06 jbeales