Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -60,7 +60,7 @@ function toPDF(urls) {
|
|
60 |
const buffers = []
|
61 |
|
62 |
for (let i = 0; i < urls.length; i++) {
|
63 |
-
const response = await fetch(urls[i], { headers: { referer:
|
64 |
if (!response.ok) continue
|
65 |
|
66 |
const type = response.headers.get('content-type')
|
|
|
60 |
const buffers = []
|
61 |
|
62 |
for (let i = 0; i < urls.length; i++) {
|
63 |
+
const response = await fetch(urls[i], { headers: { referer: urls[i] }})
|
64 |
if (!response.ok) continue
|
65 |
|
66 |
const type = response.headers.get('content-type')
|