Skip to content

Commit f099a70

Browse files
committed
Apply recent change on error_handler interface to support unicode error message in response.
1 parent 1163b99 commit f099a70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/server/wsf/policy_driven/wsf_method_helper.e

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,11 @@ feature -- Error reporting
376376
local
377377
h: HTTP_HEADER
378378
m: READABLE_STRING_8
379+
utf: UTF_CONVERTER
379380
do
380-
m := req.error_handler.as_string_representation
381+
m := utf.string_32_to_utf_8_string_8 (req.error_handler.as_string_representation)
381382
create h.make
382-
h.put_content_type_text_plain
383+
h.put_content_type_utf_8_text_plain
383384
h.put_content_length (m.count)
384385
res.set_status_code (req.error_handler.primary_error_code)
385386
res.put_header_lines (h)

0 commit comments

Comments
 (0)