Skip to content

Commit 373c304

Browse files
authored
Merge pull request #86 from Sitefinity/draganov/demo-site-ribbon
Fixed demo ribbon html appended to scripts and styles
2 parents 0790dc8 + 5022754 commit 373c304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Global.asax.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private void RequestEnd(RequestEndEvent @event)
5858
if (bool.Parse(SystemManager.CurrentHttpContext.Items[SystemManager.IsBackendRequestKey].ToString()))
5959
return;
6060

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

6464
response.Write(watermarkHtml);

0 commit comments

Comments
 (0)