Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 11, 18:30 UTC
caddytls: correct documentation of `LeafFolderLoader` (#7327)
* caddytls: correct documentation of `LeafFolderLoader` Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com> * fmt... Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com> --------- Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
Mohammed Al Sahaf committed
Nov 1, 2025 at 18:29 UTC
ddec1838b39a1b61432db4e78f2e752f27c3c769
2 files changed
+4
-4
modules/caddytls/leaffolderloader.go
+2
-2
@@ -29,9 +29,9 @@ func init() {
29
caddy.RegisterModule(LeafFolderLoader{})
30
}
31
32
-// LeafFolderLoader loads certificates and their associated keys from disk
32
+// LeafFolderLoader loads certificates from disk
33
// by recursively walking the specified directories, looking for PEM
34
-// files which contain both a certificate and a key.
34
+// files which contain a certificate.
35
type LeafFolderLoader struct {
36
Folders []string `json:"folders,omitempty"`
37
}
modules/logging/filters_test.go
+2
-2
@@ -404,12 +404,12 @@ func TestMultiRegexpFilterInputSizeLimit(t *testing.T) {
404
// Test with very large input (should be truncated)
405
largeInput := strings.Repeat("test", 300000) // Creates ~1.2MB string
406
out := f.Filter(zapcore.Field{String: largeInput})
407
-
407
+
408
// The input should be truncated to 1MB and still processed
409
if len(out.String) > 1000000 {
410
t.Fatalf("output string not truncated: length %d", len(out.String))
411
}
412
-
412
+
413
// Should still contain replacements within the truncated portion
414
if !strings.Contains(out.String, "REPLACED") {
415
t.Fatalf("replacements not applied to truncated input")