Skip to content

Commit

Permalink
Fixed demo ribbon html appended to scripts and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
orlindraganov committed Jul 28, 2022
1 parent 0790dc8 commit 5022754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Global.asax.cs
Expand Up @@ -58,7 +58,7 @@ private void RequestEnd(RequestEndEvent @event)
if (bool.Parse(SystemManager.CurrentHttpContext.Items[SystemManager.IsBackendRequestKey].ToString()))
return;

if (!response.ContentType.StartsWith("text/html"))
if (response.Headers["Content-Type"] == null || !response.Headers["Content-Type"].StartsWith("text/html"))
return;

response.Write(watermarkHtml);
Expand Down

0 comments on commit 5022754

Please sign in to comment.