upppppppp1 commited on
Commit
df63207
·
verified ·
1 Parent(s): 9e26b6f

Update index.js

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