--- 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