Skip to content

Commit

Permalink
Use the new method
Browse files Browse the repository at this point in the history
  • Loading branch information
anaxamaxan committed Aug 17, 2018
1 parent 277d7be commit 3a7b1db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ coverage/
build/*
tests/testfiles/*
logs/
.idea/
4 changes: 3 additions & 1 deletion filestack/mixins/CommonMixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ protected function sendDownload($url, $destination, $security = null)
# send request
$options = ['sink' => $destination];

$url .= '&dl=true';
// add download flag to url
$url = $this->addDownloadFlagToUrl($url);

$response = $this->sendRequest('GET', $url, $options);
$status_code = $response->getStatusCode();

Expand Down

0 comments on commit 3a7b1db

Please sign in to comment.