Skip to content

Commit 019e07e

Browse files
authored
Merge pull request #149 from L45eMy/order-mime-type
2 parents 257dd21 + 079f19f commit 019e07e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PKPass.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public function create($output = false)
315315

316316
// Output pass
317317
header('Content-Description: File Transfer');
318-
header('Content-Type: ' . self::MIME_TYPE);
318+
header('Content-Type: ' . static::MIME_TYPE);
319319
header('Content-Disposition: attachment; filename="' . $this->getName() . '"');
320320
header('Content-Transfer-Encoding: binary');
321321
header('Connection: Keep-Alive');
@@ -335,9 +335,9 @@ public function create($output = false)
335335
*/
336336
public function getName()
337337
{
338-
$name = $this->name ?: self::FILE_TYPE;
338+
$name = $this->name ?: static::FILE_TYPE;
339339
if (!strstr($name, '.')) {
340-
$name .= '.' . self::FILE_EXT;
340+
$name .= '.' . static::FILE_EXT;
341341
}
342342

343343
return $name;

0 commit comments

Comments
 (0)