Skip to content

Commit

Permalink
解决HTTP传base64大小限制 (hiroi-sora#49
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroi-sora committed Nov 7, 2023
1 parent 0d9d314 commit 652bcdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion UmiOCR-data/py_src/server/web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
from ..platform import Platform
from ..utils import pre_configs
from ..utils.call_func import CallFunc
from .bottle import Bottle, ServerAdapter, request, HTTPResponse, response
from .bottle import Bottle, ServerAdapter, request, HTTPResponse, response, BaseRequest
from .cmd_server import CmdServer
from . import ocr_server

BaseRequest.MEMFILE_MAX = 10485760 # 设置单次请求大小上限:10MB

UmiWeb = Bottle()
Host = "127.0.0.1" # 由qml设置

Expand Down

0 comments on commit 652bcdb

Please sign in to comment.