Skip to content

Commit f5393cf

Browse files
committed
Fix session cert getting on Windows
1 parent 37bb094 commit f5393cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chipper/pkg/wirepod/config-ws/webserver.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66
"net/http"
77
"os"
8+
"path"
89
"path/filepath"
910
"runtime"
1011
"strconv"
@@ -346,7 +347,7 @@ func certHandler(w http.ResponseWriter, r *http.Request) {
346347
return
347348
}
348349
esn := split[2]
349-
fileBytes, err := os.ReadFile(vars.SessionCertPath + esn)
350+
fileBytes, err := os.ReadFile(path.Join(vars.SessionCertPath, esn))
350351
if err != nil {
351352
fmt.Fprint(w, "error: cert does not exist")
352353
return

0 commit comments

Comments
 (0)