mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-08 07:23:10 -06:00
Allow for http pusher scheme
This commit is contained in:
parent
83e9d2d83c
commit
d1f906436e
|
|
@ -86,8 +86,8 @@ func SetPusher(
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return invalidParam("malformed url passed")
|
return invalidParam("malformed url passed")
|
||||||
}
|
}
|
||||||
if pushUrl.Scheme != "https" {
|
if pushUrl.Scheme != "https" && pushUrl.Scheme != "http" {
|
||||||
return invalidParam("only https scheme is allowed")
|
return invalidParam("only https and http schemes are allowed")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue