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

Response header should accept null values #429

@tenor

Description

@tenor

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions