Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 14:15 UTC
Remove duplicate words in comments (#4986)
Abirdcfly committed
Aug 28, 2022 at 04:39 UTC
e1801fdb19988a319fdc174ad39391e1a1c12f54
2 files changed
+2
-2
modules/caddyhttp/reverseproxy/reverseproxy.go
+1
-1
@@ -1360,7 +1360,7 @@ var bufPool = sync.Pool{
1360
}
1361
1362
// handleResponseContext carries some contextual information about the
1363
-// the current proxy handling.
1363
+// current proxy handling.
1364
type handleResponseContext struct {
1365
// handler is the active proxy handler instance, so that
1366
// routes like copy_response may inherit some config
modules/caddyhttp/reverseproxy/upstreams.go
+1
-1
@@ -137,7 +137,7 @@ func (su SRVUpstreams) GetUpstreams(r *http.Request) ([]*Upstream, error) {
137
_, records, err := su.resolver.LookupSRV(r.Context(), service, proto, name)
138
if err != nil {
139
// From LookupSRV docs: "If the response contains invalid names, those records are filtered
140
- // out and an error will be returned alongside the the remaining results, if any." Thus, we
140
+ // out and an error will be returned alongside the remaining results, if any." Thus, we
141
// only return an error if no records were also returned.
142
if len(records) == 0 {
143
return nil, err