Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Issue: Owin Adapter should allow responses to be sent chunked [1007]

$
0
0
If a user tries to host a message handler like this with OWIN:

public class MyHandler : HttpMessageHandler
{
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
{
var response = new HttpResponseMessage(HttpStatusCode.OK);
response.Content = new StreamContent(new MemoryStream(Encoding.UTF8.GetBytes("foo bar")));
response.Headers.TransferEncodingChunked = true;
return Task.FromResult<HttpResponseMessage>(response);
}
}

The response gets sent with a content-length instead of being sent chunked. We should respect the intent.
Comments: Verified.

Viewing all articles
Browse latest Browse all 7215

Trending Articles