Skip to content

Commit

Permalink
merge sproto
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Feb 25, 2016
1 parent 7b96eb2 commit 8f7fa6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lualib/sproto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,10 @@ end
local header_tmp = {}

local function gen_response(self, response, session)
return function(args)
return function(args, ud)
header_tmp.type = nil
header_tmp.session = session
header_tmp.ud = ud
local header = core.encode(self.__package, header_tmp)
if response then
local content = core.encode(response, args)
Expand Down

0 comments on commit 8f7fa6a

Please sign in to comment.