Skip to content

Commit e662372

Browse files
authored
Update parameters.md (#1571)
Line 101 should be request.AddParameter("foo", "bar", ParameterType.QueryString); Not RequestType.QueryString that it was before. It's just a typo, the AddParameter method in RestRequest does not have a "RequestType" param. Thank you.
1 parent 3dcf541 commit e662372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/usage/parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ It will send a `GET` request to `https://search.me/search?foo=bar")`.
9898
You can also specify the query string parameter type explicitly:
9999

100100
```csharp
101-
request.AddParameter("foo", "bar", RequestType.QueryString);
101+
request.AddParameter("foo", "bar", ParameterType.QueryString);
102102
```
103103

104104
In some cases you might need to prevent RestSharp from encoding the query string parameter. To do so, use the `QueryStringWithoutEncode` parameter type.

0 commit comments

Comments
 (0)