Browse Source

add commented code to help with testing

pull/2755/head
Jason Dove 7 months ago
parent
commit
c27924b576
No known key found for this signature in database
  1. 12
      ErsatzTV/Startup.cs

12
ErsatzTV/Startup.cs

@ -527,6 +527,18 @@ public class Startup @@ -527,6 +527,18 @@ public class Startup
try
{
app.UsePathBase(baseUrl);
// for testing - make path base required
// app.Use(async (context, next) =>
// {
// if (context.Request.PathBase != baseUrl)
// {
// context.Response.StatusCode = 404;
// return;
// }
//
// await next(context);
// });
}
catch (Exception ex)
{

Loading…
Cancel
Save