mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
MockHttpServletRequest resets InputStream/Reader on setContent
Issue: SPR-17373
This commit is contained in:
@@ -423,6 +423,8 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
||||
*/
|
||||
public void setContent(@Nullable byte[] content) {
|
||||
this.content = content;
|
||||
this.inputStream = null;
|
||||
this.reader = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user