mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-22 14:21:55 -06:00
Host header, not Host field
This commit is contained in:
parent
0227613214
commit
48ea920541
|
@ -551,9 +551,10 @@ func Register(
|
|||
}
|
||||
|
||||
var r registerRequest
|
||||
r.ServerName = cfg.Matrix.ServerName
|
||||
if v := cfg.Matrix.VirtualHostForHTTPHost(gomatrixserverlib.ServerName(req.Host)); v != nil {
|
||||
if v := cfg.Matrix.VirtualHostForHTTPHost(gomatrixserverlib.ServerName(req.Header.Get("Host"))); v != nil {
|
||||
r.ServerName = v.ServerName
|
||||
} else {
|
||||
r.ServerName = cfg.Matrix.ServerName
|
||||
}
|
||||
sessionID := gjson.GetBytes(reqBody, "auth.session").String()
|
||||
if sessionID == "" {
|
||||
|
|
Loading…
Reference in a new issue