我在openwrt中luci.http接收http json格式请求,消息体大小超过8192字节后就收不到后续的内容了。 使用http.content获取最大8192字节,后续被截断了。
local http=require "luci.http"
local data , dataLength=http.content()
http.write(tostring(dataLength))
输出8192, 我的content-length远远超过这个值
我在openwrt中luci.http接收http json格式请求,消息体大小超过8192字节后就收不到后续的内容了。 使用http.content获取最大8192字节,后续被截断了。
local http=require "luci.http"
local data , dataLength=http.content()
http.write(tostring(dataLength))
输出8192, 我的content-length远远超过这个值
3 回答2.3k 阅读✓ 已解决
1 回答1.3k 阅读✓ 已解决
1 回答2.8k 阅读
2 回答1.3k 阅读
965 阅读
988 阅读
806 阅读
查看了下luci的源码
github地址: https://github.com/openwrt/lu...
在
luci/modules/luci-base/luasrc/http.lua
有关于body的限制
其中这个方法
parse_message_body
里面