diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-04 23:47:46 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-04 23:47:46 +0000 |
commit | bb6cfa59b1b0601e683406f10a5a8d27b752095e (patch) | |
tree | 1dbe2d111d4fecb033e4e90a5f773888674bd0d3 /registry/registry.go | |
parent | 18587332033b48677231cc74c0e921be6588641f (diff) | |
download | communique-bb6cfa59b1b0601e683406f10a5a8d27b752095e.tar.gz |
output host header
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() |