Skip to content

Commit

Permalink
an array of 7 elements should be returned by CF_Http::head_object(), …
Browse files Browse the repository at this point in the history
…expected at least by cloudfiles.php line 2261, CF_Object::_initialize()
  • Loading branch information
Zachary Crockett committed Apr 9, 2011
1 parent 78c5d61 commit 02a8c65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloudfiles_http.php
Original file line number Diff line number Diff line change
Expand Up @@ -892,12 +892,12 @@ function head_object(&$obj)
if (!$return_code) {
$this->error_str .= ": Failed to obtain valid HTTP response.";
return array(0, $this->error_str." ".$this->response_reason,
NULL, NULL, NULL, NULL, array());
NULL, NULL, NULL, NULL, array(), NULL);
}

if ($return_code == 404) {
return array($return_code, $this->response_reason,
NULL, NULL, NULL, NULL, array());
NULL, NULL, NULL, NULL, array(), NULL);
}
if ($return_code == 204 || $return_code == 200) {
return array($return_code,$this->response_reason,
Expand All @@ -910,7 +910,7 @@ function head_object(&$obj)
}
$this->error_str = "Unexpected HTTP return code: $return_code";
return array($return_code, $this->error_str." ".$this->response_reason,
NULL, NULL, NULL, NULL, array());
NULL, NULL, NULL, NULL, array(), NULL);
}

# DELETE /v1/Account/Container/Object
Expand Down

0 comments on commit 02a8c65

Please sign in to comment.