Software /
code /
prosody
Comparison
plugins/mod_bosh.lua @ 4768:d232bd25ae58
mod_bosh: Fix request/response mixup
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Apr 2012 13:58:37 +0100 |
parent | 4767:8c33490b22c3 |
child | 4769:c91bb217bf79 |
comparison
equal
deleted
inserted
replaced
4767:8c33490b22c3 | 4768:d232bd25ae58 |
---|---|
377 log("debug", "Error parsing BOSH request payload; %s", error); | 377 log("debug", "Error parsing BOSH request payload; %s", error); |
378 if not context.sid then | 378 if not context.sid then |
379 local response = context.response; | 379 local response = context.response; |
380 response.headers = default_headers; | 380 response.headers = default_headers; |
381 response.status_code = 400; | 381 response.status_code = 400; |
382 request:send(); | 382 response:send(); |
383 return; | 383 return; |
384 end | 384 end |
385 | 385 |
386 local session = sessions[context.sid]; | 386 local session = sessions[context.sid]; |
387 if error == "stream-error" then -- Remote stream error, we close normally | 387 if error == "stream-error" then -- Remote stream error, we close normally |