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