proto.request is the condition

This commit is contained in:
Cloud Wu
2017-03-28 18:54:14 +08:00
parent 570a8356e6
commit fd0291845f

View File

@@ -239,7 +239,7 @@ function host:attach(sp)
self.__session[session] = proto.response or true
end
if args then
if proto.request then
local content = core.encode(proto.request, args)
return core.pack(header .. content)
else