diff --git a/patch.txt b/patch.txt deleted file mode 100644 index ba1b83c05fd..00000000000 --- a/patch.txt +++ /dev/null @@ -1,26 +0,0 @@ -diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/resource/ResourceUrlEncodingFilterTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/resource/ResourceUrlEncodingFilterTests.java -index e94a2a6..5b67c58 100644 ---- a/spring-webmvc/src/test/java/org/springframework/web/servlet/resource/ResourceUrlEncodingFilterTests.java -+++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/resource/ResourceUrlEncodingFilterTests.java -@@ -89,6 +89,21 @@ public class ResourceUrlEncodingFilterTests { - }); - } - -+ // SPR-13757 -+ @Test -+ public void encodeURLAtContextPath() throws Exception { -+ MockHttpServletRequest request = new MockHttpServletRequest("GET", "/context"); -+ request.setContextPath("/context"); -+ request.setAttribute(ResourceUrlProviderExposingInterceptor.RESOURCE_URL_PROVIDER_ATTR, this.resourceUrlProvider); -+ MockHttpServletResponse response = new MockHttpServletResponse(); -+ -+ this.filter.doFilterInternal(request, response, (request1, response1) -> { -+ String result = ((HttpServletResponse) response1).encodeURL("/context/resources/bar.css"); -+ assertEquals("/context/resources/bar-11e16cf79faee7ac698c805cf28248d2.css", result); -+ }); -+ } -+ -+ - // SPR-13018 - @Test - public void encodeEmptyURLWithContext() throws Exception {