Fixed issue of incorrectly logging response text. Fixes #1