diff mod_http_altconnect/mod_http_altconnect.lua @ 1291:1ac28a953e5f

mod_http_altconnect: Send XML declaration
author Kim Alvefur <zash@zash.se>
date Sat, 25 Jan 2014 20:20:17 +0100
parents c0957b904487
children c84ff82658cb
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)