Update packages/trace-viewer/src/sw.ts
Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
parent
48ba6e3860
commit
0ade2e70f3
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue