Skip to content

Commit

Permalink
Disposition ext
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Jan 29, 2021
1 parent ac418e8 commit 5ef05f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dispatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public function handleRequest(Request $request): Response
$response = ResourceFactory::create($resource, $contentHashMatch ? $this->_defaultCacheConfig : false);
if(BitWise::has($this->getBits(), self::FLAG_CONTENT_ATTACHMENT))
{
$filename = pathinfo($fullPath, PATHINFO_FILENAME);
$filename = pathinfo($fullPath, PATHINFO_FILENAME) . '.' . $ext;
$response->headers->set('Content-Disposition', 'attachment; filename="' . $filename . '"');
}
return $response;
Expand Down

0 comments on commit 5ef05f8

Please sign in to comment.