Send the Status code, as an header line Status: code reason
This commit is contained in:
@@ -43,8 +43,9 @@ feature -- Status writing
|
||||
local
|
||||
s: STRING
|
||||
do
|
||||
if a_code /= 200 then
|
||||
create s.make (16)
|
||||
s.append ({HTTP_CONSTANTS}.http_version_1_1)
|
||||
s.append ("Status:")
|
||||
s.append_character (' ')
|
||||
s.append_integer (a_code)
|
||||
if attached http_status_code_message (a_code) as l_status_message then
|
||||
@@ -53,6 +54,7 @@ feature -- Status writing
|
||||
end
|
||||
put_header_line (s)
|
||||
end
|
||||
end
|
||||
|
||||
put_readable_string_8 (s: READABLE_STRING_8)
|
||||
-- Write `s' at end of default output.
|
||||
|
||||
Reference in New Issue
Block a user