Comparison

plugins/mod_compression.lua @ 2613:afa20941e098

s2smanager, mod_compression, mod_tls: Changed event.session to event.origin for s2s-stream-features event for consistency.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 12 Feb 2010 04:30:17 +0500
parent 2609:2ee28cae530a
child 2887:765e7070d0a8
comparison
equal deleted inserted replaced
2612:475552b04151 2613:afa20941e098
32 features:add_child(compression_stream_feature); 32 features:add_child(compression_stream_feature);
33 end 33 end
34 end); 34 end);
35 35
36 module:hook("s2s-stream-features", function(event) 36 module:hook("s2s-stream-features", function(event)
37 local session, features = event.session, event.features; 37 local origin, features = event.origin, event.features;
38 -- FIXME only advertise compression support when TLS layer has no compression enabled 38 -- FIXME only advertise compression support when TLS layer has no compression enabled
39 if not session.compressed then 39 if not origin.compressed then
40 features:add_child(compression_stream_feature); 40 features:add_child(compression_stream_feature);
41 end 41 end
42 end); 42 end);
43 43
44 -- Hook to activate compression if remote server supports it. 44 -- Hook to activate compression if remote server supports it.