aspnet / BasicMiddleware

[Archived] Basic middleware components for ASP.NET Core. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
169 stars 84 forks source link

HttpsRedirection should look at IServerAddressesFeature for HTTPS ports #275

Closed jkotalik closed 6 years ago

jkotalik commented 6 years ago

If Kestrel is listening on any HTTPS uri, the HttpsRedirection middleware should pick the first one from the IServerAddressesFeature. cc/ @Tratcher @danroth27

Tratcher commented 6 years ago

But throw if there's more than one unique https port.