Khrisna commited on
Commit
5a347b8
·
1 Parent(s): 9c3f93b

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -1
index.js CHANGED
@@ -247,7 +247,8 @@ async function waifu2x(urls, formats) {
247
  "Content-Type": "image/jpg",
248
  "Referer": "https://waifu2x.pro/",
249
  "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0"
250
- }
 
251
  })
252
  return results.data
253
  }
 
247
  "Content-Type": "image/jpg",
248
  "Referer": "https://waifu2x.pro/",
249
  "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0"
250
+ },
251
+ responseType: "arraybuffer"
252
  })
253
  return results.data
254
  }