Skip to content

Commit 5ff81a6

Browse files
Merge pull request restsharp#1414 from Deantwo/patch-1
Ignore Empty Uri Query Parameters
2 parents 8dbeb26 + 55599ad commit 5ff81a6

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)