https://bz.apache.org/bugzilla/show_bug.cgi?id=60698

Tobias Oberlies <tobias.oberl...@sap.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Tobias Oberlies <tobias.oberl...@sap.com> ---
> I think user code will have to check for the transfer-encoding header anyway

Why is that? Do servlets care about the framing of request bodies? I don't
think so. The HTTP standard even requires that the framing of the message body
(i.e. if transfer-encoding is used or content-length) must not have an
influence on the semantics: "Request message framing is independent of method
semantics" [1] So for most servlets, framing will not make a difference.

Similarly, most servlets will not care how the absence of a request body is
signaled. They will want to handle requests in the same way regardless of
whether the request has a content-length: 0 header or neither content-length
nor transfer-encoding header. So the servlet API should hide this detail by
returning 0 on getContentLenth() in both cases.

[1] https://tools.ietf.org/html/rfc7230#section-3.3

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to