From 8f7fa6a5629a976b65af25b975a0423d2523d968 Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Thu, 25 Feb 2016 14:40:24 +0800 Subject: [PATCH] merge sproto --- lualib/sproto.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lualib/sproto.lua b/lualib/sproto.lua index 3ae114bd0..00f5337b0 100644 --- a/lualib/sproto.lua +++ b/lualib/sproto.lua @@ -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)