Update index.js
Browse files
index.js
CHANGED
|
@@ -230,7 +230,7 @@ app.get('*', async (req, res) => {
|
|
| 230 |
const contenType = headResponse.headers['content-type']
|
| 231 |
|
| 232 |
if (/^image|^text|^application/gim.test(contenType)) {
|
| 233 |
-
if (!/application\/octet-stream/gim.test(contenType)) {
|
| 234 |
return res.json({
|
| 235 |
video_url: videoUrl,
|
| 236 |
message: `文件类型不支持 ${contenType}`
|
|
|
|
| 230 |
const contenType = headResponse.headers['content-type']
|
| 231 |
|
| 232 |
if (/^image|^text|^application/gim.test(contenType)) {
|
| 233 |
+
if (!/application\/octet-stream|image\/avis/gim.test(contenType)) {
|
| 234 |
return res.json({
|
| 235 |
video_url: videoUrl,
|
| 236 |
message: `文件类型不支持 ${contenType}`
|