diff options
Diffstat (limited to 'registry/registry.go')
-rw-r--r-- | registry/registry.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/registry/registry.go b/registry/registry.go index c81e11b..cbadd5d 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -164,6 +164,7 @@ func (r *Registry) Inbox(name string, req *http.Request) error { } logger := r.log.With("type", "inbox") + logger.Debugf("host header is %s", req.Host) verifier, err := httpsig.NewVerifier(req) if err != nil { return err @@ -203,7 +204,7 @@ func (r *Registry) Inbox(name string, req *http.Request) error { err = resolver.Resolve(ctx, keyPageData) pubKeyProp := person.GetW3IDSecurityV1PublicKey() - iter := pubKeyProp.At(0) + iter := pubKeyProp.At(0) // TODO not safe pubKey := iter.Get() pemProp := pubKey.GetW3IDSecurityV1PublicKeyPem() pemStr := pemProp.Get() |