Fixed default status code for redirection response message object.

This commit is contained in:
Jocelyn Fiat
2013-03-22 16:06:45 +01:00
parent c44cf5e983
commit 273b4d13f5
3 changed files with 5 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ feature {NONE} -- Initialization
url_location := a_url_location url_location := a_url_location
delay := a_delay_in_seconds delay := a_delay_in_seconds
make_html make_html
set_status_code ({HTTP_STATUS_CODE}.found) status_code := {HTTP_STATUS_CODE}.found
end end
feature -- Header feature -- Header
@@ -65,7 +65,7 @@ feature {NONE} -- Output
end end
note note
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others" copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[ source: "[
Eiffel Software Eiffel Software

View File

@@ -197,7 +197,7 @@ feature {NONE} -- HTML Generation
end end
note note
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others" copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[ source: "[
Eiffel Software Eiffel Software

View File

@@ -18,7 +18,7 @@ feature {NONE} -- Initialization
make (a_url_location: like url_location) make (a_url_location: like url_location)
do do
status_code := {HTTP_STATUS_CODE}.ok status_code := {HTTP_STATUS_CODE}.found
url_location := a_url_location url_location := a_url_location
create header.make create header.make
end end
@@ -100,7 +100,7 @@ feature {WSF_RESPONSE} -- Output
end end
note note
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others" copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[ source: "[
Eiffel Software Eiffel Software