mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
proto.request is the condition
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user