Making exception message more clear
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
a5e31dce20
commit
53eda03203
|
@ -2306,7 +2306,7 @@ public class Request implements HttpServletRequest
|
|||
{
|
||||
String contentType = getContentType();
|
||||
if (contentType == null || !MimeTypes.Type.MULTIPART_FORM_DATA.is(HttpFields.valueParameters(contentType, null)))
|
||||
throw new ServletException("Content-Type != multipart/form-data");
|
||||
throw new ServletException("Unsupported Content-Type [" + contentType + "], expected [multipart/form-data]");
|
||||
return getParts(null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue