diff --git a/lib/handlers/get.js b/lib/handlers/get.js index b0620f852..91ce21b69 100644 --- a/lib/handlers/get.js +++ b/lib/handlers/get.js @@ -34,7 +34,7 @@ function handler (req, res, next) { // Set live updates if (ldp.live) { - res.header('Updates-Via', req.protocol.replace(/^http/, 'ws') + '://' + req.get('host')) + res.header('Updates-Via', utils.getBaseUri(req).replace(/^http/, 'ws')) } debug(req.originalUrl + ' on ' + req.hostname)