We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 421d281 commit 3ca71baCopy full SHA for 3ca71ba
internal/httputil/httputil.go
@@ -5,6 +5,7 @@ import (
5
"crypto/x509"
6
"net/http"
7
"os"
8
+ "path/filepath"
9
"strings"
10
"time"
11
)
@@ -14,7 +15,7 @@ func LoadCerts(caDir string) (string, error) {
14
15
return "", nil
16
}
17
- var certs []string
18
+ certs := []string{}
19
dirEntries, err := os.ReadDir(caDir)
20
if err != nil {
21
return "", err
@@ -23,7 +24,7 @@ func LoadCerts(caDir string) (string, error) {
23
24
if e.IsDir() {
25
continue
26
- data, err := os.ReadFile(e.Name())
27
+ data, err := os.ReadFile(filepath.Join(caDir, e.Name()))
28
29
30
0 commit comments