summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/reverseproxy
diff options
context:
space:
mode:
authorAbirdcfly <fp544037857@gmail.com>2022-08-28 04:39:26 +0800
committerGitHub <noreply@github.com>2022-08-27 14:39:26 -0600
commite1801fdb19988a319fdc174ad39391e1a1c12f54 (patch)
treead9e67999ac299cdd8fde6dea4d8986da3054fba /modules/caddyhttp/reverseproxy
parent0c57facc67910a6b0994763ac8e6e55e693f20e4 (diff)
Remove duplicate words in comments (#4986)
Diffstat (limited to 'modules/caddyhttp/reverseproxy')
-rw-r--r--modules/caddyhttp/reverseproxy/reverseproxy.go2
-rw-r--r--modules/caddyhttp/reverseproxy/upstreams.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/reverseproxy/reverseproxy.go b/modules/caddyhttp/reverseproxy/reverseproxy.go
index fd3eb2c..9943651 100644
--- a/modules/caddyhttp/reverseproxy/reverseproxy.go
+++ b/modules/caddyhttp/reverseproxy/reverseproxy.go
@@ -1360,7 +1360,7 @@ var bufPool = sync.Pool{
}
// handleResponseContext carries some contextual information about the
-// the current proxy handling.
+// current proxy handling.
type handleResponseContext struct {
// handler is the active proxy handler instance, so that
// routes like copy_response may inherit some config
diff --git a/modules/caddyhttp/reverseproxy/upstreams.go b/modules/caddyhttp/reverseproxy/upstreams.go
index f49bb28..b9f85a2 100644
--- a/modules/caddyhttp/reverseproxy/upstreams.go
+++ b/modules/caddyhttp/reverseproxy/upstreams.go
@@ -137,7 +137,7 @@ func (su SRVUpstreams) GetUpstreams(r *http.Request) ([]*Upstream, error) {
_, records, err := su.resolver.LookupSRV(r.Context(), service, proto, name)
if err != nil {
// From LookupSRV docs: "If the response contains invalid names, those records are filtered
- // out and an error will be returned alongside the the remaining results, if any." Thus, we
+ // out and an error will be returned alongside the remaining results, if any." Thus, we
// only return an error if no records were also returned.
if len(records) == 0 {
return nil, err