Fixed exception thrown when parsing a POST request.