From bb6cfa59b1b0601e683406f10a5a8d27b752095e Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Wed, 4 Jan 2023 18:47:46 -0500 Subject: output host header --- registry/registry.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'registry') 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() -- cgit v1.2.3