Diff

mod_smacks/mod_smacks.lua @ 1706:e4867211cddb

mod_smacks: Set session upvalue of filter() to correct session
author Kim Alvefur <zash@zash.se>
date Wed, 06 May 2015 01:02:00 +0200
parent 1705:6fa220a9f36d
child 1732:2f9ee9ed6267
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua	Wed May 06 01:01:18 2015 +0200
+++ b/mod_smacks/mod_smacks.lua	Wed May 06 01:02:00 2015 +0200
@@ -328,6 +328,7 @@
 		original_session.conn = session.conn;
 		original_session.send = session.send;
 		original_session.filter = session.filter;
+		original_session.filter.session = original_session;
 		original_session.filters = session.filters;
 		original_session.stream = session.stream;
 		original_session.secure = session.secure;