upppppppp1 commited on
Commit
cc7a3dc
·
verified ·
1 Parent(s): 42df68a

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
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}`