update history

This commit is contained in:
Cloud Wu
2014-07-23 14:04:32 +08:00
parent 0188e263dd
commit db25d1acc6
2 changed files with 3 additions and 1 deletions

View File

@@ -11,7 +11,8 @@ if mode == "agent" then
skynet.start(function()
skynet.dispatch("lua", function (_,_,id)
socket.start(id)
local code, url, method, header, body = httpd.read_request(sockethelper.readfunc(id))
-- limit request body size to 8192 (you can pass nil to unlimit)
local code, url, method, header, body = httpd.read_request(sockethelper.readfunc(id), 8192)
if code then
if code ~= 200 then
httpd.write_response(sockethelper.writefunc(id), code)