Skip to content

Commit

Permalink
Merge pull request #149 from L45eMy/order-mime-type
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoffelen authored Sep 30, 2024
2 parents 257dd21 + 079f19f commit 019e07e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PKPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public function create($output = false)

// Output pass
header('Content-Description: File Transfer');
header('Content-Type: ' . self::MIME_TYPE);
header('Content-Type: ' . static::MIME_TYPE);
header('Content-Disposition: attachment; filename="' . $this->getName() . '"');
header('Content-Transfer-Encoding: binary');
header('Connection: Keep-Alive');
Expand All @@ -335,9 +335,9 @@ public function create($output = false)
*/
public function getName()
{
$name = $this->name ?: self::FILE_TYPE;
$name = $this->name ?: static::FILE_TYPE;
if (!strstr($name, '.')) {
$name .= '.' . self::FILE_EXT;
$name .= '.' . static::FILE_EXT;
}

return $name;
Expand Down

0 comments on commit 019e07e

Please sign in to comment.