diff options
-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 737ae5b..9d9c2ff 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -13,6 +13,7 @@ import ( "net/url" "strings" "sync" + "time" "git.capotej.com/capotej/communique/config" "git.capotej.com/capotej/communique/models" @@ -250,7 +251,7 @@ func (r *Registry) deliverAcceptToInbox(url, actorUrl *url.URL, follow vocab.Act privKey := &keypair.PrivateKey request, err := http.NewRequest("POST", url.String(), bytes.NewBuffer(jsonData)) - // request.Header.Set("Date", time.Now().Format(http.TimeFormat)) + request.Header.Set("Date", time.Now().UTC().Format(http.TimeFormat)) request.Header.Set("Content-Type", "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") request.Header.Set("Host", url.Host) |