Skip to content

Commit 955838e

Browse files
committed
Remove and re-add the handler to media/web.config so it doesn't create duplicates for upgrades but is still added first for new installs
1 parent 4ffa206 commit 955838e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/transforms/media-web.config.install.xdt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
33
<system.webServer xdt:Transform="InsertIfMissing">
44
<handlers xdt:Transform="InsertIfMissing">
5-
<add name="StaticFileHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.StaticFileHandler" xdt:Locator="Match(name)" xdt:Transform="InsertBefore(/configuration/system.webServer/handlers/add)" />
5+
<add name="StaticFileHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.StaticFileHandler" xdt:Locator="Match(name)" xdt:Transform="Remove" />
6+
<add name="StaticFileHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.StaticFileHandler" xdt:Locator="Match(name)" xdt:Transform="InsertBefore(/configuration/system.webServer/handlers/add)" />
67
</handlers>
78
</system.webServer>
89
</configuration>

0 commit comments

Comments
 (0)