Skip to content

Comments

Fix expect 100-continue Issue with Web Cmdlets#8679

Merged
iSazonov merged 3 commits intoPowerShell:masterfrom
markekraus:feature/7199-Fix-Expect-100-Issue
Jan 19, 2019
Merged

Fix expect 100-continue Issue with Web Cmdlets#8679
iSazonov merged 3 commits intoPowerShell:masterfrom
markekraus:feature/7199-Fix-Expect-100-Issue

Conversation

@markekraus
Copy link
Contributor

@markekraus markekraus commented Jan 18, 2019

PR Summary

Fixes #7199

Web Cmdlets will no longer forcibly remove Expect: 100-continue from web requests.
This was a legacy setting that needed to be there because of platform differences that have since been resolved in CoreFX.

PR Context

#7199

PR Checklist

Copy link
Collaborator

@iSazonov iSazonov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the change can break some scripts we could mark this with Breaking-Change label.

@markekraus
Copy link
Contributor Author

@iSazonov It's not a breaking change. In previous versions of .NET Core it would have been as some linux distros were sending the header by default due to curl. That is no longer the case with the new HttpClient stack.

By default this header is not sent, but we were (before this PR) forcibly removing it if it was present which means users were not even able to send it if they chose.

@iSazonov
Copy link
Collaborator

@markekraus Thanks! If we don't break any scripts the breaking-change label is not needed.

@iSazonov iSazonov merged commit 67004aa into PowerShell:master Jan 19, 2019
@iSazonov
Copy link
Collaborator

@markekraus Thanks for your contribution!

@iSazonov iSazonov added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Jan 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Invoke-WebRequest][PSVersion 6.0.2] Unable to set "expect" (100-continue) request-header field in multipart/form-data

4 participants