We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 03428a6 + 61492e8 commit 0d2661dCopy full SHA for 0d2661d
1 file changed
lib/handlers/get.js
@@ -34,7 +34,7 @@ function handler (req, res, next) {
34
35
// Set live updates
36
if (ldp.live) {
37
- res.header('Updates-Via', req.protocol.replace(/^http/, 'ws') + '://' + req.get('host'))
+ res.header('Updates-Via', utils.getBaseUri(req).replace(/^http/, 'ws'))
38
}
39
40
debug(req.originalUrl + ' on ' + req.hostname)
0 commit comments