Maybe fixed something

This commit is contained in:
Standa Lukeš 2020-10-17 19:13:18 +00:00
parent a2797cabc2
commit 6d6c3bf701

View file

@ -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(); var str = await response.Content.ReadAsStringAsync();
str = pageRewriter.RewriteHtml(str, cx); str = pageRewriter.RewriteHtml(str, cx);