diff --git a/modules/cookies/README.rst b/modules/cookies/README.rst index 286629c2264c6fbcddcdbd01e04258b71755f543..c300b3db9db5f1579548e0ade9a7a0c6c01d1cce 100644 --- a/modules/cookies/README.rst +++ b/modules/cookies/README.rst @@ -18,20 +18,20 @@ Example Configuration -- Configure the client part of the resolver. Set 8 bytes of the client -- secret and choose the hashing algorithm to be used. -- Use a string composed of hexadecimal digits to set the secret. - cookies.config( { ['client_secret'] = '0123456789ABCDEF', - ['client_cookie_alg'] = 'FNV-64' } ) + cookies.config( { client_secret = '0123456789ABCDEF', + client_cookie_alg = 'FNV-64' } ) -- Configure the server part of the resolver. - cookies.config( { ['server_secret'] = 'FEDCBA9876543210', - ['server_cookie_alg'] = 'FNV-64' } ) + cookies.config( { server_secret = 'FEDCBA9876543210', + server_cookie_alg = 'FNV-64' } ) -- Enable client cookie functionality. (Add cookies into outbound -- queries.) - cookies.config( { ['client_enabled'] = true } ) + cookies.config( { client_enabled = true } ) -- Enable server cookie functionliaty. (Handle cookies in inbound -- requests.) - cookies.config( { ['server_enabled'] = true } ) + cookies.config( { server_enabled = true } ) .. tip:: If you want to change several parameters regarding the client or server configuration then do it within a single ``cookies.config()`` invocation.