# HG changeset patch # User Kim Alvefur # Date 1390676890 -3600 # Node ID 1f15cc58bb56978ef03ce8d2596e8434bb4af6c7 # Parent c1a8ce1478857b3eed1815dce6b2c2509dcaec4e mod_http_altconnect: Correct module name in HTTP path lookup for websockets diff -r c1a8ce147885 -r 1f15cc58bb56 mod_http_altconnect/mod_http_altconnect.lua --- 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 = "*";