Skip to content

Commit

Permalink
proto.request is the condition
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Mar 28, 2017
1 parent 570a835 commit fd02918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lualib/sproto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd02918

Please sign in to comment.