This repository has been archived by the owner. It is now read-only.

Return FormCollection.Empty when Content-Length is 0 #1038

Merged
merged 2 commits into from Sep 13, 2018

Conversation

Projects
None yet
2 participants
@pranavkm
Member

pranavkm commented Sep 12, 2018

@pranavkm pranavkm requested a review from Tratcher Sep 12, 2018

var context = new DefaultHttpContext();
var responseFeature = new FakeResponseFeature();
context.Features.Set<IHttpResponseFeature>(responseFeature);
context.Request.ContentType = "application/x-www-form-urlencoded; charset=utf-8";

This comment has been minimized.

@Tratcher

Tratcher Sep 13, 2018

Member

Not multipart like your bug report?

var context = new DefaultHttpContext();
var responseFeature = new FakeResponseFeature();
context.Features.Set<IHttpResponseFeature>(responseFeature);
context.Request.ContentType = MultipartContentType;

This comment has been minimized.

@pranavkm

pranavkm Sep 13, 2018

Member

🆙 📅

@pranavkm pranavkm merged commit d0ddb06 into release/2.2 Sep 13, 2018

4 checks passed

HttpAbstractions-ci #20180913.2 succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
license/cla All CLA requirements met.
Details

@pranavkm pranavkm deleted the prkrishn/content-length branch Sep 13, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.