-
Notifications
You must be signed in to change notification settings - Fork 247
Open
Description
Not sure how to do Pull Requests but need the ability to pass headers to copy() as the object headers are not copied.
rackspace/php-opencloud/lib/OpenCloud/ObjectStore/Resource/DataObject.php:368-382
/**
* @param string $destination Path (`container/object') of new object
* @return \Guzzle\Http\Message\Response
*/
public function copy($destination, $headers = array())
{
$headers = array_merge(!is_array($headers) ? array() : array_filter($headers), array(
'Destination' => (string) $destination,
));
return $this->getService()
->getClient()
->createRequest('COPY', $this->getUrl(), $headers)
->send();
}
Metadata
Metadata
Assignees
Labels
No labels