Fixes https://github.com/HearthStats/hearthstats/issues/222

Fix for when the result is a 301 response.

https://github.com/HearthStats/hearthstats/issues/222