Hmm, this is slightly wrong, although the problem is in the existing code. No content length and no Transfer-Encoding header also implies no content, and should also be allowed, although Undertow will always set at least one of these.