Skip to content

Conversation

jeffa00
Copy link
Contributor

@jeffa00 jeffa00 commented Jan 26, 2015

ServicePointManager.Expect100Continue = false;

with

webRequest.ServicePoint.Expect100Continue = false;

The original version sets the default for all future ServicePoints, but not the
current ServicePoint. I don't think setting the global default here is a
great idea, and it doesn't even affect the current ServicePoint which has
already been created.

Setting the application global default down inside a library is a bad behavior to me. This could lead to unintended results elsewhere in the application that incorporates RestSharp.

I posted in the Google Group if anyone wants to discuss or would like more explanation.

ServicePointManager.Expect100Continue = false;

with

webRequest.ServicePoint.Expect100Continue = false;

The original version sets the default for future ServicePoints, not the
current ServicePoint. I don't think setting the global default here is a
great idea, and it doesn't affect the current ServicePoint which has
already been created.
hallem added a commit that referenced this pull request Jan 28, 2015
ServicePointManager to ServicePoint Change: changes the behavior from setting the default for all future ServicePoints but not the current one to just setting the current one.
@hallem hallem merged commit 0b6ffe8 into restsharp:master Jan 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants