Polishing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user