You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2017/02/07 11:58:35 UTC
[Bug 60698] getContentLength returns -1 for requests without body
https://bz.apache.org/bugzilla/show_bug.cgi?id=60698
Remy Maucherat <re...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|7.0.73 |8.5.x-trunk
Status|NEW |NEEDINFO
Component|Connectors |Connectors
Product|Tomcat 7 |Tomcat 8
Severity|major |enhancement
Target Milestone|--- |----
--- Comment #1 from Remy Maucherat <re...@apache.org> ---
This will need to be investigated before making a change. I consider that
getContentLength reflects the content-length header and "unknown" allows the
current behavior.
The Tomcat code accommodates the current behavior (Request.parseParameters),
and I think user code will have to check for the transfer-encoding header
anyway rather to rely on -1.
Conclusion: not convinced. I'll move this to 8.5 as well.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org