Skip to content
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

SR-12211: URLSession doesn't add Content-Length to empty body requests #2735

Merged
merged 1 commit into from Mar 18, 2020

Conversation

spevans
Copy link
Collaborator

@spevans spevans commented Mar 18, 2020

  • For all methods except GET, if the request _Body is .none then
    set a length of 0. This will add a "Content-Length: 0" header.

  • Fail any GET requests with a body, to match Darwin.

- For all methods except GET, if the request _Body is .none then
  set a length of 0. This will add a "Content-Length: 0" header.

- Fail any GET requests with a body, to match Darwin.
@spevans
Copy link
Collaborator Author

spevans commented Mar 18, 2020

@swift-ci test linux

1 similar comment
@spevans
Copy link
Collaborator Author

spevans commented Mar 18, 2020

@swift-ci test linux

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.

None yet

2 participants