Skip to content

Commit 36143e6

Browse files
smnandreKocal
andauthored
Reuse 'Content-Disposition' header value
Co-authored-by: Hugo Alliaume <[email protected]>
1 parent 4f6f869 commit 36143e6

File tree

1 file changed

+1
-1
lines changed
  • src/LiveComponent/assets/src/Component

1 file changed

+1
-1
lines changed

src/LiveComponent/assets/src/Component/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export default class Component {
322322
throw new Error('File is too large to download (10MB limit)');
323323
}
324324

325-
const fileName = headers.get('Content-Disposition')?.split('filename=')[1];
325+
const fileName = headerContentDisposition.split('filename=')[1];
326326
if (!fileName) {
327327
throw new Error('No filename found in Content-Disposition header');
328328
}

0 commit comments

Comments
 (0)