mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-27 01:19:02 +00:00
SPR-7160 - ShallowEtagHeaderFilter not adding ETag
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3306 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+1
-2
@@ -31,7 +31,7 @@ import org.springframework.mock.web.MockHttpServletRequest;
|
||||
import org.springframework.mock.web.MockHttpServletResponse;
|
||||
import org.springframework.util.FileCopyUtils;
|
||||
|
||||
public class ShallowEtagHeaderFilterTest {
|
||||
public class ShallowEtagHeaderFilterTests {
|
||||
|
||||
private ShallowEtagHeaderFilter filter;
|
||||
|
||||
@@ -85,7 +85,6 @@ public class ShallowEtagHeaderFilterTest {
|
||||
public void doFilter(ServletRequest filterRequest, ServletResponse filterResponse)
|
||||
throws IOException, ServletException {
|
||||
assertEquals("Invalid request passed", request, filterRequest);
|
||||
((HttpServletResponse) filterResponse).setStatus(HttpServletResponse.SC_OK);
|
||||
byte[] responseBody = "Hello World".getBytes("UTF-8");
|
||||
FileCopyUtils.copy(responseBody, filterResponse.getOutputStream());
|
||||
}
|
||||
Reference in New Issue
Block a user