Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ddec183

Browse filesBrowse files
authored
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>
1 parent 92c8bc7 commit ddec183
Copy full SHA for ddec183

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎modules/caddytls/leaffolderloader.go‎

Copy file name to clipboardExpand all lines: modules/caddytls/leaffolderloader.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ func init() {
2929
caddy.RegisterModule(LeafFolderLoader{})
3030
}
3131

32-
// LeafFolderLoader loads certificates and their associated keys from disk
32+
// LeafFolderLoader loads certificates from disk
3333
// 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.
3535
type LeafFolderLoader struct {
3636
Folders []string `json:"folders,omitempty"`
3737
}
Collapse file

‎modules/logging/filters_test.go‎

Copy file name to clipboardExpand all lines: modules/logging/filters_test.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,12 @@ func TestMultiRegexpFilterInputSizeLimit(t *testing.T) {
404404
// Test with very large input (should be truncated)
405405
largeInput := strings.Repeat("test", 300000) // Creates ~1.2MB string
406406
out := f.Filter(zapcore.Field{String: largeInput})
407-
407+
408408
// The input should be truncated to 1MB and still processed
409409
if len(out.String) > 1000000 {
410410
t.Fatalf("output string not truncated: length %d", len(out.String))
411411
}
412-
412+
413413
// Should still contain replacements within the truncated portion
414414
if !strings.Contains(out.String, "REPLACED") {
415415
t.Fatalf("replacements not applied to truncated input")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.