Software /
code /
prosody
Comparison
plugins/mod_compression.lua @ 3540:bc139431830b
Monster whitespace commit (beware the whitespace monster).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 16 Oct 2010 23:00:42 +0500 |
parent | 3532:4f2cd1c688e1 |
child | 4480:187ce118aea6 |
comparison
equal
deleted
inserted
replaced
3539:8bbd965267b2 | 3540:bc139431830b |
---|---|
37 end); | 37 end); |
38 | 38 |
39 module:hook("s2s-stream-features", function(event) | 39 module:hook("s2s-stream-features", function(event) |
40 local origin, features = event.origin, event.features; | 40 local origin, features = event.origin, event.features; |
41 -- FIXME only advertise compression support when TLS layer has no compression enabled | 41 -- FIXME only advertise compression support when TLS layer has no compression enabled |
42 if not origin.compressed then | 42 if not origin.compressed then |
43 features:add_child(compression_stream_feature); | 43 features:add_child(compression_stream_feature); |
44 end | 44 end |
45 end); | 45 end); |
46 | 46 |
47 -- Hook to activate compression if remote server supports it. | 47 -- Hook to activate compression if remote server supports it. |