Allow for http pusher scheme

This commit is contained in:
Piotr Kozimor 2022-08-09 12:39:56 +02:00
parent 83e9d2d83c
commit d1f906436e

View file

@ -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")
}
}