We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea17eff commit 6cfb697Copy full SHA for 6cfb697
lib/OpenCloud/ObjectStore/Resource/DataObject.php
@@ -369,13 +369,13 @@ public function update($params = array())
369
* @param string $destination Path (`container/object') of new object
370
* @return \Guzzle\Http\Message\Response
371
*/
372
- public function copy($destination)
+ public function copy($destination, array $headers = array())
373
{
374
+ $headers = array_merge($headers, array('Destination' => (string) $destination));
375
+
376
return $this->getService()
377
->getClient()
- ->createRequest('COPY', $this->getUrl(), array(
- 'Destination' => (string) $destination
378
- ))
+ ->createRequest('COPY', $this->getUrl(), $headers)
379
->send();
380
}
381
0 commit comments