From 273b4d13f594c66bb4a537f7db1963534338c3dd Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Fri, 22 Mar 2013 16:06:45 +0100 Subject: [PATCH] Fixed default status code for redirection response message object. --- .../wsf/src/response/wsf_html_delayed_redirection_response.e | 4 ++-- library/server/wsf/src/response/wsf_html_page_response.e | 2 +- library/server/wsf/src/response/wsf_redirection_response.e | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/library/server/wsf/src/response/wsf_html_delayed_redirection_response.e b/library/server/wsf/src/response/wsf_html_delayed_redirection_response.e index e92ded3b..a0f1f218 100644 --- a/library/server/wsf/src/response/wsf_html_delayed_redirection_response.e +++ b/library/server/wsf/src/response/wsf_html_delayed_redirection_response.e @@ -26,7 +26,7 @@ feature {NONE} -- Initialization url_location := a_url_location delay := a_delay_in_seconds make_html - set_status_code ({HTTP_STATUS_CODE}.found) + status_code := {HTTP_STATUS_CODE}.found end feature -- Header @@ -65,7 +65,7 @@ feature {NONE} -- Output end 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)" source: "[ Eiffel Software diff --git a/library/server/wsf/src/response/wsf_html_page_response.e b/library/server/wsf/src/response/wsf_html_page_response.e index 5a829fca..874d1e06 100644 --- a/library/server/wsf/src/response/wsf_html_page_response.e +++ b/library/server/wsf/src/response/wsf_html_page_response.e @@ -197,7 +197,7 @@ feature {NONE} -- HTML Generation end 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)" source: "[ Eiffel Software diff --git a/library/server/wsf/src/response/wsf_redirection_response.e b/library/server/wsf/src/response/wsf_redirection_response.e index 3a4145b0..90496c95 100644 --- a/library/server/wsf/src/response/wsf_redirection_response.e +++ b/library/server/wsf/src/response/wsf_redirection_response.e @@ -18,7 +18,7 @@ feature {NONE} -- Initialization make (a_url_location: like url_location) do - status_code := {HTTP_STATUS_CODE}.ok + status_code := {HTTP_STATUS_CODE}.found url_location := a_url_location create header.make end @@ -100,7 +100,7 @@ feature {WSF_RESPONSE} -- Output end 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)" source: "[ Eiffel Software