Skip to content

Commit d73292b

Browse files
committed
Fixed the wrong cooking container check
1 parent 887c566 commit d73292b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RestSharp/RestClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public RestClient(Uri baseUrl) : this(new RestClientOptions { BaseUrl = baseUrl
7575
public RestClient(string baseUrl) : this(new Uri(Ensure.NotEmptyString(baseUrl, nameof(baseUrl)))) { }
7676

7777
public RestClient(HttpClient httpClient, RestClientOptions? options = null, bool disposeHttpClient = false) {
78-
if (Options?.CookieContainer != null) {
78+
if (options?.CookieContainer != null) {
7979
throw new ArgumentException("Custom cookie container cannot be added to the HttpClient instance", nameof(options.CookieContainer));
8080
}
8181

0 commit comments

Comments
 (0)