From c42af5b2deef08f57ab4d98639bc4c58aa9b142e Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Wed, 1 Apr 2015 22:44:24 +0200 Subject: [PATCH] Following the spec, use "keep-alive" and "close" in lowercase for Connection header. --- .../standalone/src/wgi_standalone_response_stream.e | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/server/ewsgi/connectors/standalone/src/wgi_standalone_response_stream.e b/library/server/ewsgi/connectors/standalone/src/wgi_standalone_response_stream.e index b9ccf59a..d4863bde 100644 --- a/library/server/ewsgi/connectors/standalone/src/wgi_standalone_response_stream.e +++ b/library/server/ewsgi/connectors/standalone/src/wgi_standalone_response_stream.e @@ -62,15 +62,15 @@ feature -- Header output operation -- then return "Connection: close" -- If HTTP/1.0: -- by default, connection is not persistent - -- unless header has "Connection: Keep-Alive" - -- then return "Connection: Keep-Alive" + -- unless header has "Connection: keep-alive" + -- then return "Connection: keep-alive" -- if header has "Connection: Close" -- then return "Connection: close" if is_persistent_connection_requested then if is_http_version_1_0 then if i = 0 then -- Existing response header does not has "Connection: " header. - s.append ("Connection: Keep-Alive") + s.append ("Connection: keep-alive") s.append (o.crlf) else -- Do not override the application decision. @@ -109,7 +109,7 @@ feature -- Header output operation s.append ("Connection: close") s.append (o.crlf) elseif is_persistent_connection_requested then - -- For HTTP/1.0, return "Connection: close", only if client sent a "Connection: Keep-Alive" + -- For HTTP/1.0, return "Connection: close", only if client sent a "Connection: keep-alive" s.append ("Connection: close") s.append (o.crlf) end