Software / code / prosody-modules
Changeset
1291:1ac28a953e5f
mod_http_altconnect: Send XML declaration
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 25 Jan 2014 20:20:17 +0100 |
| parents | 1290:c0957b904487 |
| children | 1292:2d061333d0c2 |
| files | mod_http_altconnect/mod_http_altconnect.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_altconnect/mod_http_altconnect.lua Sat Jan 25 20:18:54 2014 +0100 +++ b/mod_http_altconnect/mod_http_altconnect.lua Sat Jan 25 20:20:17 2014 +0100 @@ -30,7 +30,7 @@ end response.headers.content_type = "application/xrd+xml" response.headers.access_control_allow_origin = "*"; - return tostring(xrd); + return '<?xml version="1.0" encoding="UTF-8"?>' .. tostring(xrd); end local function GET_json(event)