Fix content length check in HTTPRequest.class.php