Skip to content

Commit

Permalink
an array of 8 elements should be returned by CF_Http::head_cdn_contai…
Browse files Browse the repository at this point in the history
…ner(), expected at least by cloudfiles.php line 1588, CF_Container::_cdn_initialize()
  • Loading branch information
Zachary Crockett committed Apr 9, 2011
1 parent b5e5481 commit 78c5d61
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cloudfiles_http.php
Expand Up @@ -392,13 +392,13 @@ function head_cdn_container($container_name)

if (!$return_code) {
$this->error_str .= ": Failed to obtain valid HTTP response.";
return array(0,$this->error_str,NULL,NULL,NULL,NULL,NULL,NULL);
return array(0,$this->error_str,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
}
if ($return_code == 401) {
return array($return_code,"Unauthorized",NULL,NULL,NULL,NULL,NULL,NULL);
return array($return_code,"Unauthorized",NULL,NULL,NULL,NULL,NULL,NULL,NULL);
}
if ($return_code == 404) {
return array($return_code,"Account not found.",NULL,NULL,NULL,NULL,NULL,NULL);
return array($return_code,"Account not found.",NULL,NULL,NULL,NULL,NULL,NULL,NULL);
}
if ($return_code == 204) {
return array($return_code,$this->response_reason,
Expand All @@ -413,7 +413,8 @@ function head_cdn_container($container_name)
NULL,NULL,NULL,
$this->_cdn_log_retention,
$this->_cdn_acl_user_agent,
$this->_cdn_acl_referrer
$this->_cdn_acl_referrer,
NULL
);
}

Expand Down

0 comments on commit 78c5d61

Please sign in to comment.