Skip to content

Commit 55599ad

Browse files
authored
Ignore Empty Uri Query Parameters
1 parent ac875b1 commit 55599ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RestSharp/RestRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public RestRequest(string resource, Method method, DataFormat dataFormat) : this
8888
}
8989

9090
static IEnumerable<NameValuePair> ParseQuery(string query)
91-
=> query.Split('&')
91+
=> query.Split(new char[] { '&' }, StringSplitOptions.RemoveEmptyEntries)
9292
.Select(
9393
x =>
9494
{

0 commit comments

Comments
 (0)