From bf3cf881725946dabf23df21059793abf15dd338 Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Wed, 13 Apr 2011 16:25:58 -0600 Subject: [PATCH] fix replacement in host-meta file of authority --- authority/static/.well-known/host-meta | 2 +- run.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/authority/static/.well-known/host-meta b/authority/static/.well-known/host-meta index 892325f31..f96a54897 100644 --- a/authority/static/.well-known/host-meta +++ b/authority/static/.well-known/host-meta @@ -3,7 +3,7 @@ <XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0' xmlns:hm='http://host-meta.net/xrd/1.0'> - <hm:Host xmlns='http://host-meta.net/xrd/1.0'>127.0.0.1:56080</hm:Host> + <hm:Host xmlns='http://host-meta.net/xrd/1.0'>authority.mozilla.org</hm:Host> <Link rel='lrdd' template='http://authority.mozilla.org/users/{uri}.xml'></Link> diff --git a/run.js b/run.js index c797b4940..42da0e40f 100644 --- a/run.js +++ b/run.js @@ -66,7 +66,7 @@ function serveFile(filename, response) { var a = o.server.address(); var from = o.name + ".mozilla.org"; var to = a.address + ":" + a.port; - data = data.replace(from, to); + data = data.replace(new RegExp(from, 'g'), to); } response.writeHead(200, {"Content-Type": mimeType}); -- GitLab