lua代码如下
ngx.req.read_body()
local data = "">
ngx accesslog:
222.xxx.xx.xx 2013-01-04T09:29:22+08:00 1357262962.194 2.684 1653464 38798 1 /sync/upload_file "POST /upload_file HTTP/1.1" 406 178 101 "Parameter not acceptable" "-" "Dalvik/1.4.0 (Linux; U; Android 2.3.5; HTC Desire S Build/GRJ90)" "-" "-"
日志里面 1653464 是 $request_length
chunkin on;
location @my_411_error {
chunkin_resume;
}
这个都有配置的。
奇怪的是, data 有时候是nil , 不知道哪里出问题了,我用的nginx 是1.2.3