Skip to content

Commit 5ef05f8

Browse files
committed
Disposition ext
1 parent ac418e8 commit 5ef05f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dispatch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public function handleRequest(Request $request): Response
296296
$response = ResourceFactory::create($resource, $contentHashMatch ? $this->_defaultCacheConfig : false);
297297
if(BitWise::has($this->getBits(), self::FLAG_CONTENT_ATTACHMENT))
298298
{
299-
$filename = pathinfo($fullPath, PATHINFO_FILENAME);
299+
$filename = pathinfo($fullPath, PATHINFO_FILENAME) . '.' . $ext;
300300
$response->headers->set('Content-Disposition', 'attachment; filename="' . $filename . '"');
301301
}
302302
return $response;

0 commit comments

Comments
 (0)