mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 06:53:09 -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 {
|
||||
return invalidParam("malformed url passed")
|
||||
}
|
||||
if pushUrl.Scheme != "https" {
|
||||
return invalidParam("only https scheme is allowed")
|
||||
if pushUrl.Scheme != "https" && pushUrl.Scheme != "http" {
|
||||
return invalidParam("only https and http schemes are allowed")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue