From c89b19371e7f6931f42b4187e4822493bb81e354 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Thu, 5 Apr 2012 21:14:10 +0200 Subject: [PATCH] Relaxed WSF_REDIRECTION_RESPONSE.set_content (.., ..) to allow Void for content type in order to use the one set in header or the default one. --- library/server/wsf/src/response/wsf_redirection_response.e | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/server/wsf/src/response/wsf_redirection_response.e b/library/server/wsf/src/response/wsf_redirection_response.e index f22f0387..fb4d3035 100644 --- a/library/server/wsf/src/response/wsf_redirection_response.e +++ b/library/server/wsf/src/response/wsf_redirection_response.e @@ -55,8 +55,9 @@ feature -- Element change url_location := a_url_location end - set_content (a_content: attached like content; a_content_type: attached like content_type) + set_content (a_content: attached like content; a_content_type: like content_type) -- Set `a_content' of type `a_content_type' + -- If `a_content_type' is Void, use value from `header' or default "text/plain" do content := a_content content_type := a_content_type