diff --git a/ActivityPub/models.go b/ActivityPub/models.go index 2a01c43..1a1ae4d 100644 --- a/ActivityPub/models.go +++ b/ActivityPub/models.go @@ -73,7 +73,7 @@ func (actor *Actor) RetrieveRemoteActor(url string, uaString string, cache *cach } } req, _ := http.NewRequest("GET", url, nil) - req.Header.Set("Accept", "application/activity+json, application/ld+json") + req.Header.Set("Accept", "application/activity+json") req.Header.Set("User-Agent", uaString) client := new(http.Client) resp, err := client.Do(req) diff --git a/worker/sender.go b/worker/sender.go index 14248e7..30084f2 100644 --- a/worker/sender.go +++ b/worker/sender.go @@ -34,7 +34,7 @@ func appendSignature(request *http.Request, body *[]byte, KeyID string, publicKe func sendActivity(inboxURL string, KeyID string, body []byte, publicKey *rsa.PrivateKey) error { req, _ := http.NewRequest("POST", inboxURL, bytes.NewBuffer(body)) - req.Header.Set("Content-Type", "application/activity+json, application/ld+json") + req.Header.Set("Content-Type", "application/activity+json") req.Header.Set("User-Agent", uaString) req.Header.Set("Date", httpdate.Time2Str(time.Now())) appendSignature(req, &body, KeyID, publicKey)