Adjust code to make it work with Guzzle 4
Merge pull request #4 from asgoodasnu/WK-557

Adjust code to make it work with Guzzle 4