From fbdf034b9ba75cad4a034f6f28ba586bfd391991 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Mon, 13 Feb 2017 17:36:10 +0100 Subject: [PATCH] Conflict response can also have a payload to help the client understand the source of the conflict. --- .../wsf/extension/handler/wsf_method_handler.e | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/library/server/wsf/extension/handler/wsf_method_handler.e b/library/server/wsf/extension/handler/wsf_method_handler.e index 0b76e1f6..5fe0e4e5 100644 --- a/library/server/wsf/extension/handler/wsf_method_handler.e +++ b/library/server/wsf/extension/handler/wsf_method_handler.e @@ -50,11 +50,9 @@ feature -- Contract support when {HTTP_STATUS_CODE}.no_content then Result := True when {HTTP_STATUS_CODE}.reset_content then - Result := True + Result := True when {HTTP_STATUS_CODE}.not_modified then Result := True - when {HTTP_STATUS_CODE}.conflict then - Result := True else -- default to False end @@ -68,5 +66,15 @@ feature -- Contract support Result := res.transfered_content_length = 0 -- Is that the right measure? end +note + copyright: "2011-2017, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others" + license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" + source: "[ + Eiffel Software + 5949 Hollister Ave., Goleta, CA 93117 USA + Telephone 805-685-1006, Fax 805-685-6869 + Website http://www.eiffel.com + Customer support http://support.eiffel.com + ]" end