Send the Status code, as an header line Status: code reason

This commit is contained in:
Jocelyn Fiat
2012-01-17 16:34:48 +01:00
parent d8c420c4b7
commit 7a6c51e47e

View File

@@ -43,8 +43,9 @@ feature -- Status writing
local local
s: STRING s: STRING
do do
if a_code /= 200 then
create s.make (16) create s.make (16)
s.append ({HTTP_CONSTANTS}.http_version_1_1) s.append ("Status:")
s.append_character (' ') s.append_character (' ')
s.append_integer (a_code) s.append_integer (a_code)
if attached http_status_code_message (a_code) as l_status_message then if attached http_status_code_message (a_code) as l_status_message then
@@ -53,6 +54,7 @@ feature -- Status writing
end end
put_header_line (s) put_header_line (s)
end end
end
put_readable_string_8 (s: READABLE_STRING_8) put_readable_string_8 (s: READABLE_STRING_8)
-- Write `s' at end of default output. -- Write `s' at end of default output.