Fixed 'Error results fail to parse' and 'Content length not calculated correctly', thanks to Bwooce (https://github.com/Bwooce).