From ee767bfdefbef81cfb96e0adb36e27ffffe92ee3 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sat, 6 Nov 2021 12:01:57 +0100 Subject: [PATCH] client: fix detection of GET_PARAMETER support --- clientconn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientconn.go b/clientconn.go index 05ed3879..ac5c383f 100644 --- a/clientconn.go +++ b/clientconn.go @@ -956,7 +956,7 @@ func (cc *ClientConn) doOptions(u *base.URL) (*base.Response, error) { } for _, m := range strings.Split(pub[0], ",") { - if base.Method(m) == base.GetParameter { + if base.Method(strings.Trim(m, " ")) == base.GetParameter { return true } }