if (contentLength > requestMaxContentLength)
OLogManager.instance().warn(
this,
"->" + channel.socket.getInetAddress().getHostAddress() + ": Error on content size " + contentLength
+ ": the maximum allowed is " + requestMaxContentLength);
<BUG>} else if (line.startsWith(OHttpUtils.CONTENT_TYPE)) {

String contentType = line.substring(OHttpUtils.CONTENT_TYPE.length());
</BUG>
if (contentType.startsWith(OHttpUtils.CONTENT_TYPE_MULTIPART)) {

if (contentLength > requestMaxContentLength)
OLogManager.instance().warn(
this,
"->" + channel.socket.getInetAddress().getHostAddress() + ": Error on content size " + contentLength
+ ": the maximum allowed is " + requestMaxContentLength);
} else if (line.startsWith(OHttpUtils.HEADER_CONTENT_TYPE)) {
final String contentType = line.substring(OHttpUtils.HEADER_CONTENT_TYPE.length());
if (contentType.startsWith(OHttpUtils.CONTENT_TYPE_MULTIPART)) {
