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,15 +43,17 @@ feature -- Status writing
local local
s: STRING s: STRING
do do
create s.make (16) if a_code /= 200 then
s.append ({HTTP_CONSTANTS}.http_version_1_1) create s.make (16)
s.append_character (' ') s.append ("Status:")
s.append_integer (a_code)
if attached http_status_code_message (a_code) as l_status_message then
s.append_character (' ') s.append_character (' ')
s.append_string (l_status_message) s.append_integer (a_code)
if attached http_status_code_message (a_code) as l_status_message then
s.append_character (' ')
s.append_string (l_status_message)
end
put_header_line (s)
end end
put_header_line (s)
end end
put_readable_string_8 (s: READABLE_STRING_8) put_readable_string_8 (s: READABLE_STRING_8)