From 3d126b04a92c8943acfbf34dea772c52ac65d596 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Wed, 20 Nov 2013 09:16:28 +0100 Subject: [PATCH] fixed compilation of the filter example --- examples/filter/src/filter/authentication_filter.e | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/filter/src/filter/authentication_filter.e b/examples/filter/src/filter/authentication_filter.e index a18da1e7..0587ec76 100644 --- a/examples/filter/src/filter/authentication_filter.e +++ b/examples/filter/src/filter/authentication_filter.e @@ -21,10 +21,14 @@ feature -- Basic operations execute (req: WSF_REQUEST; res: WSF_RESPONSE) -- Execute the filter local - l_auth: HTTP_AUTHORIZATION + l_auth: detachable HTTP_AUTHORIZATION do - create l_auth.make (req.http_authorization) - if (attached l_auth.type as l_auth_type and then l_auth_type.is_equal ("basic")) and + if attached req.http_authorization as l_http_authorization then + create l_auth.make (l_http_authorization) + end + if + l_auth /= Void and then + (attached l_auth.type as l_auth_type and then l_auth_type.same_string ("basic")) and then attached l_auth.login as l_auth_login and then attached Db_access.user (0, l_auth_login) as l_user and then l_auth_login.same_string (l_user.name) and then