Software /
code /
prosody
Changeset
3128:2eac6dadd9a8
Merge compression fix
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 29 May 2010 02:08:56 +0100 |
parents | 3126:9095eb464260 (current diff) 3127:94639081f327 (diff) |
children | 3129:125f03db0b1a |
files | |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_compression.lua Wed May 26 13:38:22 2010 +0100 +++ b/plugins/mod_compression.lua Sat May 29 02:08:56 2010 +0100 @@ -119,7 +119,7 @@ -- setup decompression for a stream local function setup_decompression(session, inflate_stream) local old_data = session.data - session.data = function(conn, data) + session.data = function(data) local status, decompressed, eof = pcall(inflate_stream, data); if status == false then session:close({ @@ -130,7 +130,7 @@ module:log("warn", "%s", tostring(decompressed)); return; end - old_data(conn, decompressed); + old_data(decompressed); end; end