removes ResponseStatusDescription and others that aren't used, ports the not found handler, ports redirects, headers, etc...

This commit is contained in:
Shannon
2021-01-06 20:03:49 +11:00
parent f5bd53b223
commit 333479666c
26 changed files with 351 additions and 331 deletions

View File

@@ -72,7 +72,7 @@ namespace Umbraco.Web.Routing
}
/// <inheritdoc />
public IPublishedRequestBuilder CreateRequest(Uri uri) => new PublishedRequestBuilder(_fileService);
public IPublishedRequestBuilder CreateRequest(Uri uri) => new PublishedRequestBuilder(uri, _fileService);
/// <inheritdoc />
public bool TryRouteRequest(IPublishedRequestBuilder request)
@@ -106,6 +106,10 @@ namespace Umbraco.Web.Routing
/// <inheritdoc />
public IPublishedRequest RouteRequest(IPublishedRequestBuilder request)
{
//// trigger the Preparing event - at that point anything can still be changed
//// the idea is that it is possible to change the uri
//request.OnPreparing();
// find domain
FindDomain(request);
@@ -411,7 +415,7 @@ namespace Umbraco.Web.Routing
// handle not found
if (request.PublishedContent == null)
{
request.SetIs404(true);
request.SetIs404();
_logger.LogDebug("HandlePublishedContent: No document, try last chance lookup");
// if it fails then give up, there isn't much more that we can do