Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -126,7 +126,7 @@ app.post('/api/waifu2x', async (req, res) => {
|
|
| 126 |
if (!status) return res.json({ success: false, message: 'Required an status text!' })
|
| 127 |
|
| 128 |
if(status !== apikey) return res.json({ success: false, message: 'Invalid status!' })
|
| 129 |
-
if (
|
| 130 |
const data_img = await axios.request({
|
| 131 |
method: "GET",
|
| 132 |
url: images,
|
|
|
|
| 126 |
if (!status) return res.json({ success: false, message: 'Required an status text!' })
|
| 127 |
|
| 128 |
if(status !== apikey) return res.json({ success: false, message: 'Invalid status!' })
|
| 129 |
+
if (/https:\/\//i.test(images)) {
|
| 130 |
const data_img = await axios.request({
|
| 131 |
method: "GET",
|
| 132 |
url: images,
|