diff --git a/samples/Http2SampleApp/Http2SampleApp.csproj b/samples/Http2SampleApp/Http2SampleApp.csproj
index cd660a6c80..683e6e4041 100644
--- a/samples/Http2SampleApp/Http2SampleApp.csproj
+++ b/samples/Http2SampleApp/Http2SampleApp.csproj
@@ -15,9 +15,7 @@
-
- PreserveNewest
-
+
diff --git a/samples/Http2SampleApp/testCert.pfx b/samples/Http2SampleApp/testCert.pfx
deleted file mode 100644
index 7118908c2d..0000000000
Binary files a/samples/Http2SampleApp/testCert.pfx and /dev/null differ
diff --git a/src/Kestrel.Core/Features/ITlsApplicationProtocolFeature.cs b/src/Kestrel.Core/Features/ITlsApplicationProtocolFeature.cs
index 8adca3f0e8..7ad37730d5 100644
--- a/src/Kestrel.Core/Features/ITlsApplicationProtocolFeature.cs
+++ b/src/Kestrel.Core/Features/ITlsApplicationProtocolFeature.cs
@@ -1,12 +1,11 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-using System;
-
namespace Microsoft.AspNetCore.Server.Kestrel.Core.Features
{
+ // TODO: this should be merged with ITlsConnectionFeature
public interface ITlsApplicationProtocolFeature
{
- ReadOnlyMemory ApplicationProtocol { get; }
+ string ApplicationProtocol { get; }
}
}
diff --git a/src/Kestrel.Core/Internal/HttpConnection.cs b/src/Kestrel.Core/Internal/HttpConnection.cs
index fcd2c314a8..1ac4945ae4 100644
--- a/src/Kestrel.Core/Internal/HttpConnection.cs
+++ b/src/Kestrel.Core/Internal/HttpConnection.cs
@@ -23,8 +23,6 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal
{
public class HttpConnection : ITimeoutControl, IConnectionTimeoutFeature, IRequestProcessor
{
- private static readonly ReadOnlyMemory Http2Id = new ReadOnlyMemory(new[] { (byte)'h', (byte)'2' });
-
private readonly HttpConnectionContext _context;
private readonly TaskCompletionSource