Skip to content

Commit

Permalink
Remove and re-add the handler to media/web.config so it doesn't creat…
Browse files Browse the repository at this point in the history
…e duplicates for upgrades but is still added first for new installs
  • Loading branch information
Jeavon committed Aug 19, 2016
1 parent 4ffa206 commit 955838e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/transforms/media-web.config.install.xdt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.webServer xdt:Transform="InsertIfMissing">
<handlers xdt:Transform="InsertIfMissing">
<add name="StaticFileHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.StaticFileHandler" xdt:Locator="Match(name)" xdt:Transform="InsertBefore(/configuration/system.webServer/handlers/add)" />
<add name="StaticFileHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.StaticFileHandler" xdt:Locator="Match(name)" xdt:Transform="Remove" />

This comment has been minimized.

Copy link
@JimBobSquarePants

JimBobSquarePants Aug 21, 2016

Contributor

Clever!

This comment has been minimized.

Copy link
@Jeavon

Jeavon Aug 22, 2016

Author Collaborator

😆

<add name="StaticFileHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.StaticFileHandler" xdt:Locator="Match(name)" xdt:Transform="InsertBefore(/configuration/system.webServer/handlers/add)" />
</handlers>
</system.webServer>
</configuration>

0 comments on commit 955838e

Please sign in to comment.