mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 15:49:26 +00:00
Polish contribution
See gh-24805
This commit is contained in:
@@ -76,7 +76,7 @@ public class MockHttpOutputMessage implements HttpOutputMessage {
|
||||
* @param charset the charset to use to turn the body content to a String
|
||||
*/
|
||||
public String getBodyAsString(Charset charset) {
|
||||
return StreamUtils.baosToString(this.body, charset);
|
||||
return StreamUtils.copyToString(this.body, charset);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user