瀏覽代碼

perf(video

tianyunperfect 3 月之前
父節點
當前提交
2b42de2e42
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      video_play/main.py

+ 1 - 1
video_play/main.py

@@ -142,7 +142,7 @@ def play_video(md5):
     """播放接口"""
     for f in scan_files():
         if f['md5'] == md5:
-            return send_file(f['path'])
+            return send_file(f['path'], conditional=True)
     return "Not Found", 404
 
 @app.route('/weight/<md5>', methods=['POST'])