protected boolean isMultipartRequest(final WebContext context) {
        val contentType = context.getRequestHeader(HttpConstants.CONTENT_TYPE_HEADER);
        return contentType.isPresent() && contentType.get().toLowerCase().startsWith("multipart");
    }
<p>isMultipartRequest.</p>

@param context a {@link WebContext} object
@return a boolean
pac4j-cas/src/main/java/org/pac4j/cas/credentials/extractor/CasCredentialsExtractor.java