From: Karel Slany Date: Wed, 20 Jul 2016 14:22:55 +0000 (+0200) Subject: Removed unnecessary square brackets from cookie module documentation. X-Git-Tag: v1.1.0~2^2~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee2ac45a7e85fe95920cbf4b6586119e05855277;p=thirdparty%2Fknot-resolver.git Removed unnecessary square brackets from cookie module documentation. --- diff --git a/modules/cookies/README.rst b/modules/cookies/README.rst index 286629c22..c300b3db9 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.