WSF_TRACE_RESPONSE should include "Content-Type: message/http" header

Close issue #145
This commit is contained in:
2014-11-25 15:55:48 +01:00
parent 6d2318ac9b
commit 6b9d248542

View File

@@ -33,6 +33,8 @@ feature -- Header
feature {WSF_RESPONSE} -- Output feature {WSF_RESPONSE} -- Output
send_to (res: WSF_RESPONSE) 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 local
s: STRING s: STRING
t: STRING t: STRING
@@ -42,6 +44,7 @@ feature {WSF_RESPONSE} -- Output
do do
h := header h := header
res.set_status_code ({HTTP_STATUS_CODE}.ok) res.set_status_code ({HTTP_STATUS_CODE}.ok)
h.put_content_type_message_http
req := request req := request
if attached req.raw_header_data as l_header then if attached req.raw_header_data as l_header then
create s.make (l_header.count) create s.make (l_header.count)