@marcel91200 / caddy Mirror · read-only / commits / 4aa4f3ac
Fork 0

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, 00:30 UTC

httpcaddyfile: Fix `string does not match ~[]E` error (#5675)

Only happens for some people. Unable to confirm.

Herman Slatman committed Aug 3, 2023 at 02:41 UTC 4aa4f3ac70c682fb25db1283ea8516598528995a
1 file changed +1 -1
caddyconfig/httpcaddyfile/httptype.go
+1 -1
@@ -355,7 +355,7 @@ func (st ServerType) Setup(
355 defaultLog.Exclude = append(defaultLog.Exclude, ncl.log.Include...)
356
357 // avoid duplicates by sorting + compacting
358 - slices.Sort[string](defaultLog.Exclude)
358 + sort.Strings(defaultLog.Exclude)
359 defaultLog.Exclude = slices.Compact[[]string, string](defaultLog.Exclude)
360 }
361 }