summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorsellskin <[email protected]>2024-03-25 23:05:45 +0800
committerGitHub <[email protected]>2024-03-25 09:05:45 -0600
commit0dd0487eba1592b19cb2260fe247b7d375301fe5 (patch)
tree2e0f79d002cd6935366dcabe380be3f1f2f86740
parentdb9d16735458be441abcb12b477d9d1fe630687e (diff)
downloadcaddy-0dd0487eba1592b19cb2260fe247b7d375301fe5.tar.gz
caddy-0dd0487eba1592b19cb2260fe247b7d375301fe5.zip
chore: remove repetitive word (#6193)
Signed-off-by: sellskin <[email protected]>
-rw-r--r--modules/caddyhttp/templates/tplcontext.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/templates/tplcontext.go b/modules/caddyhttp/templates/tplcontext.go
index a66a0c305..8ba64200f 100644
--- a/modules/caddyhttp/templates/tplcontext.go
+++ b/modules/caddyhttp/templates/tplcontext.go
@@ -257,7 +257,7 @@ func (TemplateContext) funcEnv(varName string) string {
return os.Getenv(varName)
}
-// Cookie gets the value of a cookie with name name.
+// Cookie gets the value of a cookie with name.
func (c TemplateContext) Cookie(name string) string {
cookies := c.Req.Cookies()
for _, cookie := range cookies {