Fixed WSF_TRACE_RESPONSE which was overwritting previously prepared content.

This commit is contained in:
Jocelyn Fiat
2012-12-19 16:43:07 +01:00
parent aa65c16957
commit 3d8e277003

View File

@@ -35,6 +35,7 @@ feature {WSF_RESPONSE} -- Output
send_to (res: WSF_RESPONSE) send_to (res: WSF_RESPONSE)
local local
s: STRING s: STRING
t: STRING
h: like header h: like header
req: like request req: like request
n, nb: INTEGER n, nb: INTEGER
@@ -87,10 +88,12 @@ feature {WSF_RESPONSE} -- Output
end end
res.flush res.flush
else else
req.read_input_data_into (s) create t.make (req.content_length_value.to_integer_32)
h.put_content_length (s.count) req.read_input_data_into (t)
h.put_content_length (s.count + t.count)
res.put_header_text (h.string) res.put_header_text (h.string)
res.put_string (s) res.put_string (s)
res.put_string (t)
res.flush res.flush
end end
end end