parent
b8835c9f32
commit
87f28ce48e
|
@ -130,7 +130,7 @@ public class WebRequestDataBinder extends WebDataBinder {
|
||||||
*/
|
*/
|
||||||
private boolean isMultipartRequest(WebRequest request) {
|
private boolean isMultipartRequest(WebRequest request) {
|
||||||
String contentType = request.getHeader("Content-Type");
|
String contentType = request.getHeader("Content-Type");
|
||||||
return (contentType != null && StringUtils.startsWithIgnoreCase(contentType, "multipart"));
|
return StringUtils.startsWithIgnoreCase(contentType, "multipart");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void bindParts(HttpServletRequest request, MutablePropertyValues mpvs) {
|
private void bindParts(HttpServletRequest request, MutablePropertyValues mpvs) {
|
||||||
|
|
|
@ -136,7 +136,7 @@ class RegexPathElement extends PathElement {
|
||||||
if (matches) {
|
if (matches) {
|
||||||
if (isNoMorePattern()) {
|
if (isNoMorePattern()) {
|
||||||
if (matchingContext.determineRemainingPath &&
|
if (matchingContext.determineRemainingPath &&
|
||||||
(this.variableNames.isEmpty() ? true : textToMatch.length() > 0)) {
|
(this.variableNames.isEmpty() || textToMatch.length() > 0)) {
|
||||||
matchingContext.remainingPathIndex = pathIndex + 1;
|
matchingContext.remainingPathIndex = pathIndex + 1;
|
||||||
matches = true;
|
matches = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue