From 201b9b41f98aa28d7d0ad223bf3614b78312690d Mon Sep 17 00:00:00 2001
From: Francis Lavoie <lavofr@gmail.com>
Date: Tue, 31 Jan 2023 03:07:57 -0500
Subject: [PATCH] chore: Fix warning "range variable captured by func literal"
 (#5348)

---
 modules/caddyhttp/matchers_test.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/caddyhttp/matchers_test.go b/modules/caddyhttp/matchers_test.go
index 4d5538cd3..4f5da69a3 100644
--- a/modules/caddyhttp/matchers_test.go
+++ b/modules/caddyhttp/matchers_test.go
@@ -929,6 +929,7 @@ func TestVarREMatcher(t *testing.T) {
 			expect: true,
 		},
 	} {
+		i := i   // capture range value
 		tc := tc // capture range value
 		t.Run(tc.desc, func(t *testing.T) {
 			t.Parallel()