diff options
| author | adnano <[email protected]> | 2020-10-12 00:13:24 -0400 |
|---|---|---|
| committer | adnano <[email protected]> | 2020-10-12 00:13:24 -0400 |
| commit | 3e640c384362738d37c40727a8e3a118b4b7bb54 (patch) | |
| tree | 2115cd950dd9ec17c8161dbbc3f67ca8eab61c80 /cert.go | |
| parent | Implement loading of certificates from a directory (diff) | |
| download | go-gemini-3e640c384362738d37c40727a8e3a118b4b7bb54.tar.xz go-gemini-3e640c384362738d37c40727a8e3a118b4b7bb54.zip | |
Update examples
Diffstat (limited to 'cert.go')
| -rw-r--r-- | cert.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -60,7 +60,7 @@ func (c *CertificateStore) Load(path string) error { if err != nil { continue } - hostname := filepath.Base(crtPath) + hostname := strings.TrimSuffix(filepath.Base(crtPath), ".crt") c.store[hostname] = cert } return nil |