Skip to content
#

aspnetcore

Here are 2,162 public repositories matching this topic...

ambrosmiroslav
ambrosmiroslav commented Jun 2, 2021

The HttpClient created "manually" is able to follow HTTP status code 303 (See other) and jump to redirected page:

        _client = new HttpClient();

But the HttpClient retrieved from WebApplicationFactory isn't:

        public ClientContext(WebApplicationFactory<MyProject.Startup> Factory)
        {
                    _client = Factory.CreateClient();
        }
Rick-Anderson
Rick-Anderson commented Jun 2, 2020

Create an include (something like https://github.com/dotnet/AspNetCore.Docs/blob/master/aspnetcore/includes/reservedRouting.md

With the info from https://github.com/dotnet/aspnetcore/wiki/MVC-Reserved-Keywords on routing. Be stronger, something like

These keywords should not be used for link generations, as model bound parameters, or top level properties.

Add the include to the 3

Improve this page

Add a description, image, and links to the aspnetcore topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the aspnetcore topic, visit your repo's landing page and select "manage topics."

Learn more