mirror of
https://github.com/Kakune55/ComiPy.git
synced 2025-09-14 11:19:34 +08:00
使用显式GC节省内存 + 为book页添加响应式布局
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from flask import *
|
||||
from flask import Blueprint
|
||||
import db.file , file
|
||||
import db.file , file, gc
|
||||
|
||||
api_Img_bp = Blueprint("api_Img_bp", __name__)
|
||||
|
||||
@@ -23,4 +23,5 @@ def img(bookid, index): # 图片接口
|
||||
del data
|
||||
response.headers.set("Content-Type", "image/Webp")
|
||||
response.headers.set("Content-Disposition", "inline", filename=filename)
|
||||
gc.collect()
|
||||
return response
|
||||
|
Reference in New Issue
Block a user