Made all libraries compilable in any mode (voidsafe or not)

Fixed related examples
This commit is contained in:
Jocelyn Fiat
2011-09-22 15:12:33 +02:00
parent d9ba97d33b
commit dae8e1d67d
10 changed files with 58 additions and 47 deletions

View File

@@ -63,9 +63,9 @@ feature -- Execution
do
content_type_supported := <<{HTTP_CONSTANTS}.json_app, {HTTP_CONSTANTS}.xml_text, {HTTP_CONSTANTS}.plain_text>>
l_format_id := ctx.request_format_id ("format", content_type_supported)
if ctx.authenticated then
if authenticated (ctx) then
l_full := attached ctx.query_parameter ("details") as v and then v.is_case_insensitive_equal ("true")
if attached ctx.authenticated_identifier as log then
if attached authenticated_identifier (ctx) as log then
l_login := log.as_string_8
create h.make

View File

@@ -70,7 +70,7 @@ feature -- Execution
-- if attached ctx.http_authorization_login_password as t then
-- s.append_string ("Check login=" + t.login + "<br/>%N")
-- end
if ctx.authenticated and then attached ctx.authenticated_identifier as l_login then
if authenticated (ctx) and then attached authenticated_identifier (ctx) as l_login then
s.append_string ("Authenticated: login=" + l_login.as_string_8 + "<br/>%N")
end
end