From 6b9d24854229cfeb2a88214e324b6ca36d7da925 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Tue, 25 Nov 2014 15:55:48 +0100 Subject: [PATCH] WSF_TRACE_RESPONSE should include "Content-Type: message/http" header Close issue #145 --- library/server/wsf/src/response/wsf_trace_response.e | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/server/wsf/src/response/wsf_trace_response.e b/library/server/wsf/src/response/wsf_trace_response.e index 4b08c80d..543c8aa8 100644 --- a/library/server/wsf/src/response/wsf_trace_response.e +++ b/library/server/wsf/src/response/wsf_trace_response.e @@ -33,6 +33,8 @@ feature -- Header feature {WSF_RESPONSE} -- Output send_to (res: WSF_RESPONSE) + note + EIS: "name=RFC7231 section 4.3.8", "protocol=URI", "src=https://tools.ietf.org/html/rfc7231#section-4.3.8" local s: STRING t: STRING @@ -42,6 +44,7 @@ feature {WSF_RESPONSE} -- Output do h := header res.set_status_code ({HTTP_STATUS_CODE}.ok) + h.put_content_type_message_http req := request if attached req.raw_header_data as l_header then create s.make (l_header.count)