Comparison

plugins/mod_bosh.lua @ 8767:7738838a013d

mod_bosh: Fix inconsistent whitespace [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 01 May 2018 18:21:57 +0200
parent 8765:d5ff0982d3e6
child 8843:041ddc670934
comparison
equal deleted inserted replaced
8766:01264bc60c2b 8767:7738838a013d
190 end 190 end
191 191
192 return true; -- Inform http server we shall reply later 192 return true; -- Inform http server we shall reply later
193 end 193 end
194 elseif response.finished or context.ignore_request then 194 elseif response.finished or context.ignore_request then
195 -- A response has been sent already, or we're ignoring this request 195 -- A response has been sent already, or we're ignoring this request
196 -- (e.g. so a different instance of the module can handle it) 196 -- (e.g. so a different instance of the module can handle it)
197 return; 197 return;
198 end 198 end
199 module:log("warn", "Unable to associate request with a session (incomplete request?)"); 199 module:log("warn", "Unable to associate request with a session (incomplete request?)");
200 local close_reply = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate", 200 local close_reply = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate",
201 ["xmlns:stream"] = xmlns_streams, condition = "item-not-found" }); 201 ["xmlns:stream"] = xmlns_streams, condition = "item-not-found" });