Skip to content

Commit

Permalink
Update for code review.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruebot committed Dec 7, 2015
1 parent 7df2961 commit 6f017f7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Chullo.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,16 +325,18 @@ public function copyResource($uri,
// Ensure uri takes transaction into account.
$uri = $this->prepareUri($uri, $transaction);
// Create destinsation URI
$destination_uri = "Destination: " . $this->prepareUri($destination, $transaction);
$destination_uri = $this->prepareUri($destination, $transaction);
// Create destination array
$destination = array(
'Destination' => $destination_uri,
'Overwrite' => 'T'
);
$options = [
'headers' => [
'Destination' => $destination_uri,
'Overwrite' => 'T'
],
];
$response = $this->client->request(
'COPY',
$uri,
$destination
$options
);

// Return the value of the location header
Expand Down

0 comments on commit 6f017f7

Please sign in to comment.