Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
|
@@ -41,7 +41,7 @@ app.get('/:filename', (req, res) => {
|
|
| 41 |
let headers_dict = originalResponse.headers;
|
| 42 |
headers_dict['Access-Control-Allow-Origin'] = '*';
|
| 43 |
|
| 44 |
-
headers_dict['Content-Disposition'] = `
|
| 45 |
|
| 46 |
const { statusCode, headers } = originalResponse;
|
| 47 |
res.writeHead(statusCode, headers);
|
|
|
|
| 41 |
let headers_dict = originalResponse.headers;
|
| 42 |
headers_dict['Access-Control-Allow-Origin'] = '*';
|
| 43 |
|
| 44 |
+
headers_dict['Content-Disposition'] = `attachment; filename="${filename}"`;
|
| 45 |
|
| 46 |
const { statusCode, headers } = originalResponse;
|
| 47 |
res.writeHead(statusCode, headers);
|