Nice little directory browser :D
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix/Compression middleware: ok dont ask how I managed to do this but I got this condition backwards (www)

+7 -4
+7 -4
Program.cs
··· 63 63 // check paths exist 64 64 app.Use(async (context, next) => { 65 65 context.Request.Headers.Append("X-Nhnd-Compress-Me", "false"); 66 - if ( 66 + if (context.Request.Path.StartsWithSegments("/api/files")) { 67 + // TODO: for future JSON response at this endpoint, set false! 68 + context.Request.Headers["X-Nhnd-Compress-Me"] = "true"; 69 + await next(context); 70 + return; 71 + } else if ( 67 72 // if reexecuting for an error, let someone else handle that 68 73 context.Features.Get<IStatusCodeReExecuteFeature>() != null 69 - // let api/ handle that 70 - || context.Request.Path.StartsWithSegments("/api/files") 71 74 // let our static file error handler do that 72 75 || context.Request.Path.StartsWithSegments("/.nhnd") 73 76 ) { ··· 114 117 115 118 // HTML compression 116 119 app.Use(async (context, next) => { 117 - if (context.Request.Headers["X-Nhnd-Compress-Me"] == "true") { 120 + if (context.Request.Headers["X-Nhnd-Compress-Me"] == "false") { 118 121 await next(context); 119 122 return; 120 123 }