diff --git a/lib/OpenCloud/ObjectStore/Resource/DataObject.php b/lib/OpenCloud/ObjectStore/Resource/DataObject.php index 5eb3c085e..a041d9043 100644 --- a/lib/OpenCloud/ObjectStore/Resource/DataObject.php +++ b/lib/OpenCloud/ObjectStore/Resource/DataObject.php @@ -369,13 +369,13 @@ public function update($params = array()) * @param string $destination Path (`container/object') of new object * @return \Guzzle\Http\Message\Response */ - public function copy($destination) + public function copy($destination, array $headers = array()) { + $headers = array_merge($headers, array('Destination' => (string) $destination)); + return $this->getService() ->getClient() - ->createRequest('COPY', $this->getUrl(), array( - 'Destination' => (string) $destination - )) + ->createRequest('COPY', $this->getUrl(), $headers) ->send(); }