Changeset

1289:1f15cc58bb56

mod_http_altconnect: Correct module name in HTTP path lookup for websockets
author Kim Alvefur <zash@zash.se>
date Sat, 25 Jan 2014 20:08:10 +0100
parents 1288:c1a8ce147885
children 1290:c0957b904487
files mod_http_altconnect/mod_http_altconnect.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_altconnect/mod_http_altconnect.lua	Sat Jan 25 15:33:26 2014 +0100
+++ b/mod_http_altconnect/mod_http_altconnect.lua	Sat Jan 25 20:08:10 2014 +0100
@@ -14,7 +14,7 @@
 		xrd:tag("Link", { rel="urn:xmpp:altconnect:bosh", href = module:http_url("bosh", "/http-bind") }):up();
 	end
 	if host_modules["websocket"] then
-		xrd:tag("Link", { rel="urn:xmpp:altconnect:websocket", href = module:http_url("bosh", "/xmpp-websocket"):gsub("^http", "ws") }):up();
+		xrd:tag("Link", { rel="urn:xmpp:altconnect:websocket", href = module:http_url("websocket", "/xmpp-websocket"):gsub("^http", "ws") }):up();
 	end
 	response.headers.content_type = "application/xrd+xml"
 	response.headers.access_control_allow_origin = "*";
@@ -28,7 +28,7 @@
 		jrd.links[#jrd.links+1] = { rel="urn:xmpp:altconnect:bosh", href = module:http_url("bosh", "/http-bind") };
 	end
 	if host_modules["websocket"] then
-		jrd.links[#jrd.links+1] = { rel="urn:xmpp:altconnect:websocket", href = module:http_url("bosh", "/xmpp-websocket"):gsub("^http", "ws") }
+		jrd.links[#jrd.links+1] = { rel="urn:xmpp:altconnect:websocket", href = module:http_url("websocket", "/xmpp-websocket"):gsub("^http", "ws") }
 	end
 	response.headers.content_type = "application/json"
 	response.headers.access_control_allow_origin = "*";