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)
|
if (!attachment)
|
||||||
return;
|
return;
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
// Escape non-ascii characters and quotes.
|
|
||||||
headers.set('Content-Disposition', `attachment; filename="attachment"; filename*=UTF-8''${encodeURIComponent(attachment.name)}`);
|
headers.set('Content-Disposition', `attachment; filename="attachment"; filename*=UTF-8''${encodeURIComponent(attachment.name)}`);
|
||||||
if (attachment.contentType)
|
if (attachment.contentType)
|
||||||
headers.set('Content-Type', attachment.contentType);
|
headers.set('Content-Type', attachment.contentType);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue