Merge branch '5.3.x'
This commit is contained in:
commit
1776f08bfe
|
@ -243,12 +243,12 @@ public abstract class AbstractMessageConverterMethodProcessor extends AbstractMe
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mediaTypesToUse.isEmpty()) {
|
if (mediaTypesToUse.isEmpty()) {
|
||||||
if (body != null) {
|
|
||||||
throw new HttpMediaTypeNotAcceptableException(producibleTypes);
|
|
||||||
}
|
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug("No match for " + acceptableTypes + ", supported: " + producibleTypes);
|
logger.debug("No match for " + acceptableTypes + ", supported: " + producibleTypes);
|
||||||
}
|
}
|
||||||
|
if (body != null) {
|
||||||
|
throw new HttpMediaTypeNotAcceptableException(producibleTypes);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue