Skip to content

Commit 65fbefe

Browse files
committed
pr review
1 parent 60f23f0 commit 65fbefe

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Servers/HttpSys/src/RequestProcessing/RequestContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ internal unsafe bool TryGetTlsClientHelloMessageBytes(
255255
bytesReturned: (IntPtr)bytesReturnedPointer,
256256
overlapped: IntPtr.Zero);
257257

258-
bytesReturned = (int)bytesReturnedValue;
258+
bytesReturned = checked((int)bytesReturnedValue);
259259

260260
if (statusCode is ErrorCodes.ERROR_SUCCESS)
261261
{

src/Servers/HttpSys/test/FunctionalTests/HttpsTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public async Task Https_ITlsHandshakeFeature_MatchesIHttpSysExtensionInfoFeature
241241

242242
[ConditionalFact]
243243
[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win10_20H2)]
244-
public void Https_SetsIHttpSysRequestPropertyFeature()
244+
public async Task Https_SetsIHttpSysRequestPropertyFeature()
245245
{
246246
using (Utilities.CreateDynamicHttpsServer(out var address, async httpContext =>
247247
{
@@ -256,7 +256,8 @@ public void Https_SetsIHttpSysRequestPropertyFeature()
256256
}
257257
}, LoggerFactory))
258258
{
259-
// nothing
259+
string response = await SendRequestAsync(address);
260+
Assert.Equal(string.Empty, response);
260261
}
261262
}
262263

src/Servers/Kestrel/Core/src/ListenOptionsHttpsExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public static ListenOptions UseHttps(this ListenOptions listenOptions, Action<Ht
188188
/// <see cref="KestrelServerOptions.ConfigureHttpsDefaults(Action{HttpsConnectionAdapterOptions})"/>.
189189
/// </summary>
190190
/// <param name="listenOptions">The <see cref="ListenOptions"/> to configure.</param>
191-
/// <param name="httpsOptions">Options to configure HTTPS.</param>
191+
/// <param name="httpsOptions">Options to configure HTTPS.</param>
192192
/// <returns>The <see cref="ListenOptions"/>.</returns>
193193
public static ListenOptions UseHttps(this ListenOptions listenOptions, HttpsConnectionAdapterOptions httpsOptions)
194194
{

0 commit comments

Comments
 (0)