From d1f906436e087be8539501c887cca28ebec5809c Mon Sep 17 00:00:00 2001 From: Piotr Kozimor Date: Tue, 9 Aug 2022 12:39:56 +0200 Subject: [PATCH] Allow for http pusher scheme --- clientapi/routing/pusher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clientapi/routing/pusher.go b/clientapi/routing/pusher.go index d6a6eb936..48d319ebd 100644 --- a/clientapi/routing/pusher.go +++ b/clientapi/routing/pusher.go @@ -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") } }