Skip to content

Commit c42af5b

Browse files
committed
Following the spec, use "keep-alive" and "close" in lowercase for Connection header.
1 parent d9cbc72 commit c42af5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/server/ewsgi/connectors/standalone/src/wgi_standalone_response_stream.e

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ feature -- Header output operation
6262
-- then return "Connection: close"
6363
-- If HTTP/1.0:
6464
-- by default, connection is not persistent
65-
-- unless header has "Connection: Keep-Alive"
66-
-- then return "Connection: Keep-Alive"
65+
-- unless header has "Connection: keep-alive"
66+
-- then return "Connection: keep-alive"
6767
-- if header has "Connection: Close"
6868
-- then return "Connection: close"
6969
if is_persistent_connection_requested then
7070
if is_http_version_1_0 then
7171
if i = 0 then
7272
-- Existing response header does not has "Connection: " header.
73-
s.append ("Connection: Keep-Alive")
73+
s.append ("Connection: keep-alive")
7474
s.append (o.crlf)
7575
else
7676
-- Do not override the application decision.
@@ -109,7 +109,7 @@ feature -- Header output operation
109109
s.append ("Connection: close")
110110
s.append (o.crlf)
111111
elseif is_persistent_connection_requested then
112-
-- For HTTP/1.0, return "Connection: close", only if client sent a "Connection: Keep-Alive"
112+
-- For HTTP/1.0, return "Connection: close", only if client sent a "Connection: keep-alive"
113113
s.append ("Connection: close")
114114
s.append (o.crlf)
115115
end

0 commit comments

Comments
 (0)