Maybe fixed something
This commit is contained in:
parent
a2797cabc2
commit
6d6c3bf701
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue