bugfix: socket open address, and httpd bodylimit

This commit is contained in:
Cloud Wu
2014-10-29 16:51:39 +08:00
parent 2ab689f7c1
commit 6c9ad16077
3 changed files with 6 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ local function readall(readbytes, bodylimit)
else
-- identity mode
if length then
if length > bodylimit then
if bodylimit and length > bodylimit then
return 413
end
if #body >= length then