Browse Source

Maybe fixed something

mj-deploy
Standa Lukeš 4 years ago
parent
commit
6d6c3bf701
  1. 2
      server/Ksp.WebServer/Startup.cs

2
server/Ksp.WebServer/Startup.cs

@ -119,7 +119,7 @@ namespace Ksp.WebServer
));
}
if (new [] { "text/html", "application/xhtml+xml" }.Contains(response.Content.Headers.ContentType.MediaType))
if (new [] { "text/html", "application/xhtml+xml" }.Contains(response.Content?.Headers?.ContentType?.MediaType))
{
var str = await response.Content.ReadAsStringAsync();
str = pageRewriter.RewriteHtml(str, cx);