Skip to content

Commit 505c797

Browse files
committed
Use the correct host for the auto-refresh feature
1 parent 7b1659e commit 505c797

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

engine/sse.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ func (ac *Config) InsertAutoRefresh(req *http.Request, htmldata []byte) []byte {
127127
if ac.serverHost != "" {
128128
fullHost = utils.JoinHostPort(ac.serverHost, fullHost)
129129
} else {
130-
fullHost = utils.JoinHostPort(utils.GetDomain(req), fullHost)
130+
// Use the raw request host
131+
fullHost = utils.JoinHostPort(utils.GetHost(req), fullHost)
131132
}
132133
}
133134
// Wait 70% of an event duration before starting to listen for events

0 commit comments

Comments
 (0)