From 0c8d00a4396e7717b20a79769b0a6ee29c00ab24 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Thu, 5 Jan 2023 10:58:08 -0500 Subject: moar logging --- http/router.go | 3 +++ registry/registry.go | 1 + 2 files changed, 4 insertions(+) diff --git a/http/router.go b/http/router.go index 3b4b1d1..910c67c 100644 --- a/http/router.go +++ b/http/router.go @@ -83,6 +83,9 @@ func (s *Router) Start(zapWriter io.Writer) { ).With( "content-type", c.GetHeader("Content-Type"), + ).With( + "digest", + c.GetHeader("digest"), ).With( "payload", payload, diff --git a/registry/registry.go b/registry/registry.go index ac486d9..4b61a7b 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -253,6 +253,7 @@ func (r *Registry) deliverAcceptToInbox(url, actorUrl *url.URL, follow vocab.Act request, err := http.NewRequest("POST", url.String(), bytes.NewBuffer(jsonData)) request.Header.Set("Date", time.Now().Format(http.TimeFormat)) request.Header.Set("Content-Type", "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") + request.Header.Set("Host", url.Host) r.log.With( "type", -- cgit v1.2.3