]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
Removed unnecessary square brackets from cookie module documentation.
authorKarel Slany <karel.slany@nic.cz>
Wed, 20 Jul 2016 14:22:55 +0000 (16:22 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 11 Aug 2016 12:06:45 +0000 (14:06 +0200)
modules/cookies/README.rst

index 286629c2264c6fbcddcdbd01e04258b71755f543..c300b3db9db5f1579548e0ade9a7a0c6c01d1cce 100644 (file)
@@ -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.