Skip to content

Commit fa944ec

Browse files
committed
append query in GetWebSocketUri()
1 parent b5b0365 commit fa944ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphQL.Client/UriExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static Uri GetWebSocketUri(this Uri uri)
2222
return uri;
2323

2424
string webSocketScheme = uri.Scheme == "https" ? "wss" : "ws";
25-
return new Uri($"{webSocketScheme}://{uri.Host}:{uri.Port}{uri.AbsolutePath}");
25+
return new Uri($"{webSocketScheme}://{uri.Host}:{uri.Port}{uri.PathAndQuery}");
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)