Software / code / prosody
Comparison
plugins/mod_bosh.lua @ 5649:c321f1fed851
mod_bosh: Remove another place we set headers, fixes #348
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 06 Jun 2013 14:48:41 +0100 |
| parent | 5648:f7f667c48d9a |
| child | 5651:c968c8e3596d |
comparison
equal
deleted
inserted
replaced
| 5648:f7f667c48d9a | 5649:c321f1fed851 |
|---|---|
| 279 t_insert(session.send_buffer, tostring(s)); | 279 t_insert(session.send_buffer, tostring(s)); |
| 280 | 280 |
| 281 local oldest_request = r[1]; | 281 local oldest_request = r[1]; |
| 282 if oldest_request and not session.bosh_processing then | 282 if oldest_request and not session.bosh_processing then |
| 283 log("debug", "We have an open request, so sending on that"); | 283 log("debug", "We have an open request, so sending on that"); |
| 284 oldest_request.headers = default_headers; | |
| 285 local body_attr = { xmlns = "http://jabber.org/protocol/httpbind", | 284 local body_attr = { xmlns = "http://jabber.org/protocol/httpbind", |
| 286 ["xmlns:stream"] = "http://etherx.jabber.org/streams"; | 285 ["xmlns:stream"] = "http://etherx.jabber.org/streams"; |
| 287 type = session.bosh_terminate and "terminate" or nil; | 286 type = session.bosh_terminate and "terminate" or nil; |
| 288 sid = sid; | 287 sid = sid; |
| 289 }; | 288 }; |