Add extended content type for ActivityPub objects. Closes #1827
This commit is contained in:
parent
79ca6e04f3
commit
926560cd02
@ -21,7 +21,7 @@ func RequireActivityPubOrRedirect(handler http.HandlerFunc) http.HandlerFunc {
|
|||||||
handler(w, r)
|
handler(w, r)
|
||||||
}
|
}
|
||||||
|
|
||||||
acceptedContentTypes := []string{"application/json", "application/json+ld", "application/activity+json"}
|
acceptedContentTypes := []string{"application/json", "application/json+ld", "application/activity+json", `application/ld+json; profile="https://www.w3.org/ns/activitystreams"`}
|
||||||
acceptString := r.Header.Get("Accept")
|
acceptString := r.Header.Get("Accept")
|
||||||
accept := strings.Split(acceptString, ",")
|
accept := strings.Split(acceptString, ",")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user