Skip to content

Add AllowLineTerminator option in KestrelServerOptions #43252

Closed
@sebastienros

Description

@sebastienros

Background and Motivation

New option to support LF as a request line terminator.

Proposed API

public class KestrelServerOptions
{
     /// <summary>
     /// Gets or sets a value that controls whether the request lines
     /// can end with LF only instead of CR/LF.
     /// </summary>
     /// <remarks>
     /// Defaults to false.
     /// </remarks>
+    public bool AllowLineFeedTerminator { get; set; }
}

Usage Examples

n/a

Alternative Designs

n/a

Risks

The change is non-breaking, the default is not activating the new feature. The feature has been verified in production by Azure App Service.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-kestrel

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions