-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected behavoir when upgrading to 111.3.0 #2235
Comments
I think it's a bug. By default, parameters with the same aren't allowed. You can always set |
The real workaround is |
Also, setting the user agent is normally done by setting the options property: var options = new RestClientOptions("https://xx.yy") { UserAgent = "my-agent" };
var client = new RestClient(options); |
Not sure from you replies whether its gonna get changed. Workarounds are fine , but as a of this moment , a code that worked fine on previous versions stopped working on newer versions. Just wanted to report on this issue and it got acknowledged. Thanks for your work and let me know if you need anything else on my part. |
I just mentioned the workaround while I included the fix to the PR I was opening for the other issue related to headers. |
Hi
Upgraded a little internal tool which uses restsharp to use version 111.3.0 instead 110.2.0 and started to get the following error :
After quick check i found that the following code is the problem
AddDefaultHeader throws the exception and changing the code to :
Workarounds this problem.
Is this behavior is by design ?
The text was updated successfully, but these errors were encountered: