Reverted previous changed related to redefinition of set_status_code which was against existing assertions.

This commit is contained in:
2015-07-02 15:11:33 +02:00
parent af60a5719e
commit 33150e34d6

View File

@@ -9,7 +9,6 @@ class
inherit inherit
WGI_FILTER_RESPONSE WGI_FILTER_RESPONSE
redefine redefine
set_status_code,
commit, commit,
put_character, put_character,
put_string, put_string,
@@ -75,19 +74,6 @@ feature {NONE} -- Implementation
header_committed: header_committed header_committed: header_committed
end end
feature -- Status setting
set_status_code (a_code: INTEGER; a_reason_phrase: detachable READABLE_STRING_8)
-- Set response status code with custom `a_reason_phrase' if precised
-- Should be done before sending any data back to the client
do
if a_reason_phrase /= Void then
wsf_response.set_status_code_with_reason_phrase (a_code, a_reason_phrase)
else
wsf_response.set_status_code (a_code)
end
end
feature -- Status report feature -- Status report
message_writable: BOOLEAN = True message_writable: BOOLEAN = True