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 2018/01/09 21:52:50 UTC
[Bug 61982] New: HTTP responses are not compliant with RFC 7230
https://bz.apache.org/bugzilla/show_bug.cgi?id=61982
Bug ID: 61982
Summary: HTTP responses are not compliant with RFC 7230
Product: Tomcat 8
Version: 8.5.x-trunk
Hardware: PC
OS: Mac OS X 10.1
Status: NEW
Severity: normal
Priority: P2
Component: Cluster
Assignee: dev@tomcat.apache.org
Reporter: alex@dickinson.net
Target Milestone: ----
With suppression of the HTTP reason code enabled, the response header returned
by Tomcat is not compliant with RFC 7230.
Tomcat will response with a response: "HTTP/1.1 200<CR><LF>"
According to RFC 7230 section 3.1.2
(https://tools.ietf.org/html/rfc7230#section-3.1.2) , the status line should be
of the form:
status-line = HTTP-version SP status-code SP reason-phrase CRLF
where
reason-phrase = *( HTAB / SP / VCHAR / obs-text )
There must be a space after the status code even if the reason-phrase is empty.
See also http://lists.w3.org/Archives/Public/ietf-http-wg/2012JulSep/1214.html
This issue causes an issue with the python tornado library.
--
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
[Bug 61982] HTTP responses are not compliant with RFC 7230
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61982
--- Comment #2 from Michael Osipov <19...@gmx.net> ---
Here is the code snippet for:
https://github.com/apache/tomcat85/blob/65209b1a853e642b6db3e2694c56196474677e37/java/org/apache/coyote/http11/Http11OutputBuffer.java#L361-L380
--
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
[Bug 61982] HTTP responses are not compliant with RFC 7230
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61982
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Confirmed, via Wireshark, that the space is present.
--
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
[Bug 61982] HTTP responses are not compliant with RFC 7230
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61982
Alex Dickinson <al...@dickinson.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Cluster |Connectors
--
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
[Bug 61982] HTTP responses are not compliant with RFC 7230
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61982
Alex Dickinson <al...@dickinson.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Connectors |Cluster
CC| |alex@dickinson.net
--
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