aboutsummaryrefslogtreecommitdiff
path: root/registry/registry.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-04 23:47:46 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-04 23:47:46 +0000
commitbb6cfa59b1b0601e683406f10a5a8d27b752095e (patch)
tree1dbe2d111d4fecb033e4e90a5f773888674bd0d3 /registry/registry.go
parent18587332033b48677231cc74c0e921be6588641f (diff)
downloadcommunique-bb6cfa59b1b0601e683406f10a5a8d27b752095e.tar.gz
output host header
Diffstat (limited to '')
-rw-r--r--registry/registry.go3
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()