Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
@@ -39,8 +39,7 @@ app.get('/', async (req, res) => {
|
|
39 |
|
40 |
headers_dict['X-Speed'] = 'Fast';
|
41 |
headers_dict['X-Bandwidth'] = 'High';
|
42 |
-
|
43 |
-
|
44 |
if (filename) {
|
45 |
headers_dict['Content-Disposition'] = `attachment; filename="${filename}"`;
|
46 |
} else {
|
@@ -67,7 +66,7 @@ app.get('/', async (req, res) => {
|
|
67 |
newResponse.headers.set('Server', 'gvs 1.0');
|
68 |
newResponse.headers.set('Vary', 'Origin');
|
69 |
newResponse.headers.set('X-Content-Type-Options', 'nosniff');
|
70 |
-
newResponse.headers.set('Access-Control-Allow-Origin', '
|
71 |
|
72 |
res.writeHead(newResponse.status, newResponse.headers);
|
73 |
newResponse.body.pipe(res);
|
|
|
39 |
|
40 |
headers_dict['X-Speed'] = 'Fast';
|
41 |
headers_dict['X-Bandwidth'] = 'High';
|
42 |
+
|
|
|
43 |
if (filename) {
|
44 |
headers_dict['Content-Disposition'] = `attachment; filename="${filename}"`;
|
45 |
} else {
|
|
|
66 |
newResponse.headers.set('Server', 'gvs 1.0');
|
67 |
newResponse.headers.set('Vary', 'Origin');
|
68 |
newResponse.headers.set('X-Content-Type-Options', 'nosniff');
|
69 |
+
newResponse.headers.set('Access-Control-Allow-Origin', '*');
|
70 |
|
71 |
res.writeHead(newResponse.status, newResponse.headers);
|
72 |
newResponse.body.pipe(res);
|