Skip to content

Commit

Permalink
Minor change to FileName Getter
Browse files Browse the repository at this point in the history
I took off last character of filename without realizing.
  • Loading branch information
MichaelJ2324 committed Aug 15, 2016
1 parent bcb6226 commit 9933600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Response/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected function extractFileName(){
foreach (explode("\r\n", $this->headers) as $header)
{
if (strpos($header, 'filename')!==FALSE){
$fileName = substr($header, (strpos($header, "=")+1), -1);
$fileName = substr($header, (strpos($header, "=")+1));
$this->setFileName($fileName);
}
}
Expand Down

0 comments on commit 9933600

Please sign in to comment.