Skip to content

Commit

Permalink
Merge pull request #1 from IGORm90/master
Browse files Browse the repository at this point in the history
Исправлено определение заголовка: content-disposition
  • Loading branch information
Artemeey committed Nov 1, 2023
2 parents 1bc2482 + 1293e7f commit 6b9ab31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/nbproject/
.idea
.idea
/vendor
2 changes: 1 addition & 1 deletion src/V2/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function sendRequest($url, array $headers, array $arrayData = NULL){

$headersString = implode("\n", $this->headers);
switch(true){
case preg_match('/^Content-Disposition: attachment/m', $headersString):
case preg_match('/^content-disposition: attachment/im', $headersString):
$this->setFileResult($response);

break;
Expand Down

0 comments on commit 6b9ab31

Please sign in to comment.