diff --git a/Src/EngineIoClientDotNet.mono/Modules/ParseQS.cs b/Src/EngineIoClientDotNet.mono/Modules/ParseQS.cs index ac215af..ac15624 100644 --- a/Src/EngineIoClientDotNet.mono/Modules/ParseQS.cs +++ b/Src/EngineIoClientDotNet.mono/Modules/ParseQS.cs @@ -68,8 +68,8 @@ public static Dictionary Decode(string qs) for (int i = 0; i < pairs.Length; i++) { var pair = pairs[i].Split('='); - - qry.Add(Global.DecodeURIComponent(pair[0]), Global.DecodeURIComponent(pair[1])); + //fix: query params used to contain leading questionmark, which resulted in wrong uri + qry.Add(Global.DecodeURIComponent(pair[0].TrimStart('?')), Global.DecodeURIComponent(pair[1])); } return qry; }