Software /
code /
prosody-modules
Changeset
657:26e61a9afb5c
mod_server_status: for sure xml isn't json, passing json mime and viceversa isn't appropriate at all. *no no*
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Sun, 29 Apr 2012 20:29:07 +0000 |
parents | 656:74bd7ebe5792 |
children | 658:39306c770d7d |
files | mod_server_status/mod_server_status.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_server_status/mod_server_status.lua Sun Apr 29 20:18:45 2012 +0000 +++ b/mod_server_status/mod_server_status.lua Sun Apr 29 20:29:07 2012 +0000 @@ -112,10 +112,10 @@ local function request(event) local response = event.response if not json_output then - response.headers.content_type = "application/json" + response.headers.content_type = "text/xml" response:send(forge_response_xml()) else - response.headers.content_type = "text/xml" + response.headers.content_type = "application/json" response:send(forge_response_json()) end end