Browse Source

Merge pull request #4 from tam7t/hsts-typo

typos: hsts-> hpkp
Tommy Murphy 4 years ago
parent
commit
9902c57dbc
2 changed files with 3 additions and 3 deletions
  1. 1 1
      dialer.go
  2. 2 2
      storage.go

+ 1 - 1
dialer.go

@@ -7,7 +7,7 @@ import (
 	"strings"
 )
 
-// Storage is threadsafe hsts storage interface
+// Storage is threadsafe hpkp storage interface
 type Storage interface {
 	Lookup(host string) *Header
 	Add(host string, d *Header)

+ 2 - 2
storage.go

@@ -11,8 +11,8 @@ type MemStorage struct {
 	mutex   sync.Mutex
 }
 
-// NewMemStorage initializes hsts in-memory datastructure
-func NewMemStorage() *MemStorage {
+// NewMemStorage initializes hpkp in-memory datastructure
+func NewMemStorage() Storage {
 	m := &MemStorage{}
 	m.domains = make(map[string]Header)
 	return m