diff --git a/bin/browserid b/bin/browserid index f495e14fdceaf77b2b1168cbe5a7574018215fbf..3b9a077842a667185c358f5a9f7fa69aa2489983 100755 --- a/bin/browserid +++ b/bin/browserid @@ -71,15 +71,6 @@ if (!config.get('keysigner_url')) { process.exit(1); } -function internal_redirector(new_url, suppress_noframes) { - return function(req, resp, next) { - if (suppress_noframes) - resp.removeHeader('x-frame-options'); - req.url = new_url; - return next(); - }; -} - function router(app) { app.set("views", path.join(__dirname, "..", "resources", "views")); @@ -334,14 +325,6 @@ app.use(function(req, resp, next) { return next(); }); -// a tweak to get the content type of host-meta correct -app.use(function(req, resp, next) { - if (req.url === '/.well-known/host-meta') { - resp.setHeader('content-type', 'text/xml'); - } - next(); -}); - // Strict Transport Security app.use(function(req, resp, next) { if (overSSL) { @@ -381,4 +364,4 @@ db.open(config.get('database'), function (error) { app.listen(bindTo.port, bindTo.host, function() { logger.info("running on http://" + app.address().address + ":" + app.address().port); }); -}); \ No newline at end of file +}); diff --git a/resources/static/.well-known/host-meta b/resources/static/.well-known/host-meta deleted file mode 100644 index eab9ec759cdac622c273f7fad74d08e690596002..0000000000000000000000000000000000000000 --- a/resources/static/.well-known/host-meta +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?> - -<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'>browserid.org</hm:Host> - - <Link rel="https://browserid.org/vocab#publicKey" href="/pk"></Link> - - <Link rel='lrdd' template='https://browserid.org/users/{uri}.xml'></Link> - - <Link rel='other' value='something-different'></Link> -</XRD>