AspNetCore.Docs/aspnetcore/security/enforcing-ssl/sample-snapshot
Cédric Luthi 68849ede7e
Enforce HTTPS in ASP.NET Core: Use Status308PermanentRedirect (#31739)
* Enforce HTTPS in ASP.NET Core: Use Status308PermanentRedirect

The previous paragraph says
> Use the fields of the [StatusCodes](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.statuscodes) class for assignments to `RedirectStatusCode`.

But the sample code then uses the status code defined in `System.Net` and a cast to `int`.

* Use Status307TemporaryRedirect in other sample code (Program2.cs)
2024-02-27 11:24:17 -08:00
..
2.x Replace status code with status code enum (#22116) 2021-04-23 10:14:47 -10:00
3.x Replace status code with status code enum (#22116) 2021-04-23 10:14:47 -10:00
6.x Enforce HTTPS in ASP.NET Core: Use Status308PermanentRedirect (#31739) 2024-02-27 11:24:17 -08:00