Skip to content
Snippets Groups Projects
Commit 6919a3a2 authored by rswindell's avatar rswindell
Browse files

Added TODO comment regarding apparent RFC 2145 violation in the Status-Line

HTTP-Version value we send (no functional change). My intepretation is we
should be sending either nothing or "HTTP/1.1" here, never "HTTP/1.0". This
interpretation appears to match the behavior of other web servers
(e.g. Apache httpd).
parent 139cb55a
No related branches found
No related tags found
No related merge requests found
......@@ -1280,6 +1280,12 @@ static BOOL send_headers(http_session_t *session, const char *status, int chunke
}
/* Status-Line */
/* TODO: This Status-Line appears to violate RFC 2145:
"An HTTP server SHOULD send a response version equal to the highest
version for which the server is at least conditionally compliant, and
whose major version is less than or equal to the one received in the
request."
*/
safe_snprintf(header,sizeof(header),"%s %s",http_vers[session->http_ver],status_line);
lprintf(LOG_DEBUG,"%04d Result: %s",session->socket,header);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment