Polishing

This commit is contained in:
Juergen Hoeller
2015-12-09 15:13:41 +01:00
parent 76f84b914f
commit 7f7f24949b
3 changed files with 6 additions and 7 deletions

View File

@@ -175,7 +175,6 @@ public class ServletServerHttpRequest implements ServerHttpRequest {
}
private static boolean isFormPost(HttpServletRequest request) {
String contentType = request.getContentType();
return (contentType != null && contentType.contains(FORM_CONTENT_TYPE) &&
@@ -185,8 +184,8 @@ public class ServletServerHttpRequest implements ServerHttpRequest {
/**
* Use {@link javax.servlet.ServletRequest#getParameterMap()} to reconstruct the
* body of a form 'POST' providing a predictable outcome as opposed to reading
* from the body, which can fail if any other code has used ServletRequest
* to access a parameter thus causing the input stream to be "consumed".
* from the body, which can fail if any other code has used the ServletRequest
* to access a parameter, thus causing the input stream to be "consumed".
*/
private static InputStream getBodyFromServletRequestParameters(HttpServletRequest request) throws IOException {
ByteArrayOutputStream bos = new ByteArrayOutputStream(1024);