Update packages/trace-viewer/src/sw.ts

Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Max Schmitt 2024-03-18 19:07:07 +01:00 committed by GitHub
parent 48ba6e3860
commit 0ade2e70f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -159,7 +159,6 @@ function downloadHeadersForAttachment(traceModel: TraceModel, sha1: string): Hea
if (!attachment)
return;
const headers = new Headers();
// Escape non-ascii characters and quotes.
headers.set('Content-Disposition', `attachment; filename="attachment"; filename*=UTF-8''${encodeURIComponent(attachment.name)}`);
if (attachment.contentType)
headers.set('Content-Type', attachment.contentType);