mirror of
https://github.com/owncast/owncast.git
synced 2024-11-28 11:09:01 +03:00
Add extended content type for ActivityPub objects. Closes #1827
This commit is contained in:
parent
79ca6e04f3
commit
926560cd02
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue