diff --git a/browserid/app.js b/browserid/app.js
index 925529b67f5910da93263a42ea111ea2a5706d5c..c8f188c9c5dcd26f6ae83a03d62cb891b63bed55 100644
--- a/browserid/app.js
+++ b/browserid/app.js
@@ -64,4 +64,12 @@ exports.setup = function(server) {
     }));
 
     server.use(handler);
+
+    // a tweak to get the content type of host-meta correct
+    server.use(function(req, resp, next) {
+        if (req.url === '/.well-known/host-meta') {
+            resp.setHeader('content-type', 'text/xml');
+        }
+        next();
+    });
 }