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

Edited 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.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>