Skip to content

Commit 50c1635

Browse files
committed
fixed curl code [18], message [transfer closed with x bytes remaining to read]
is present when You retrieve object metadata HEAD /<api version>/<account>/<container>/<object> HTTP/1.1
1 parent 4c67da8 commit 50c1635

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/http.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ public function __construct($url, $method='GET', $options=array()) {
8383
$this->setOption(CURLOPT_CAINFO, RAXSDK_CACERTPEM);
8484
}
8585

86+
// curl code [18]
87+
// message [transfer closed with x bytes remaining to read]
88+
if ($method === 'HEAD')
89+
$this->SetOption(CURLOPT_NOBODY, TRUE);
90+
8691
// follow redirects
8792
$this->SetOption(CURLOPT_FOLLOWLOCATION, TRUE);
8893

0 commit comments

Comments
 (0)