indiewebify-me
indiewebify-me copied to clipboard
Update guzzle
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).