Browse Source

spelling: correct comments

Tommy Murphy 3 years ago
parent
commit
f4d3fa52ec
2 changed files with 2 additions and 2 deletions
  1. 1 1
      dialer.go
  2. 1 1
      header.go

+ 1 - 1
dialer.go

@@ -84,7 +84,7 @@ func newPinDialer(s StorageReader, r PinFailureReporter, pinOnly bool, defaultTL
 			return c, nil
 		}
 
-		// do a normal dial, address isnt in hpkp cache
+		// do a normal dial, address isn't in hpkp cache
 		return tls.Dial(network, addr, defaultTLSConfig)
 	}
 }

+ 1 - 1
header.go

@@ -47,7 +47,7 @@ func ParseHeader(resp *http.Response) *Header {
 	return populate(&Header{}, v[0])
 }
 
-// ParseReportOnlyHeader parses the hpkp information from an http.Reponse.
+// ParseReportOnlyHeader parses the hpkp information from an http.Response.
 // The resulting header information should not be cached as max_age is
 // ignored on HPKP-RO headers per the RFC.
 func ParseReportOnlyHeader(resp *http.Response) *Header {