Skip to content

Commit 1e2767e

Browse files
Make Kestrel default to HTTP/1 and /2. (#50243)
1 parent 81fe483 commit 1e2767e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Servers/Kestrel/Core/src/ListenOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core;
1616
/// </summary>
1717
public class ListenOptions : IConnectionBuilder, IMultiplexedConnectionBuilder
1818
{
19-
internal const HttpProtocols DefaultHttpProtocols = HttpProtocols.Http1AndHttp2AndHttp3;
19+
internal const HttpProtocols DefaultHttpProtocols = HttpProtocols.Http1AndHttp2;
2020

2121
private readonly List<Func<ConnectionDelegate, ConnectionDelegate>> _middleware = new List<Func<ConnectionDelegate, ConnectionDelegate>>();
2222
private readonly List<Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate>> _multiplexedMiddleware = new List<Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate>>();

0 commit comments

Comments
 (0)