This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Description
On rc1-final, Kestrel returns a 502 (Bad Gateway) if a null value is passed into a response header.
// GET: api/values
[HttpGet]
public IEnumerable<string> Get()
{
Response.Headers.Add("Hello", new string[] { null });
return new string[] { "value1", "value2" };
}
The action method above will trigger that response.
Null values in headers should be allowed. The server will then output an empty string header value in the HTTP response stream.