Skip to content

Commit

Permalink
If it is a multipart, urlrewrite does not work ok. So we will not red…
Browse files Browse the repository at this point in the history
…irect those calls.
  • Loading branch information
Delawen committed Jul 30, 2014
1 parent 468a7e5 commit a22db00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/src/main/webapp/WEB-INF/urlrewrite.xml
Expand Up @@ -20,10 +20,12 @@

<!-- Rule to redirect old deprecated @json requests -->
<rule>
<condition name="content-type" operator="notequal">multipart/form-data</condition>
<from>^(.+)@json$</from>
<to type="permanent-redirect">%{context-path}$1?format=json</to>
</rule>
<rule>
<condition name="content-type" operator="notequal">multipart/form-data</condition>
<from>^(.+)@json(\?.*)$</from>
<to type="permanent-redirect">%{context-path}$1$2&amp;format=json</to>
</rule>
Expand Down

0 comments on commit a22db00

Please sign in to comment.