From 3c9fce293fa4c4f5d3321b1e1db8cd96bbfc7461 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Wed, 7 Sep 2011 12:10:48 +0200 Subject: [PATCH] fixed example .. where we forgot to set the status, and send the header (DbC helped here) --- .../src/framework/routed_application_helper.e | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/hello_routed_world/src/framework/routed_application_helper.e b/examples/hello_routed_world/src/framework/routed_application_helper.e index 4d1c730a..92349a8b 100644 --- a/examples/hello_routed_world/src/framework/routed_application_helper.e +++ b/examples/hello_routed_world/src/framework/routed_application_helper.e @@ -60,6 +60,8 @@ feature -- Helper i := i + 1 end end + res.set_status_code ({HTTP_STATUS_CODE}.unsupported_media_type) + res.write_headers_string (h.string) if s /= Void then res.write_string ("Unsupported request content-type, Accept: " + s + "%N") end