Detect more ActivityStreams requests

This commit is contained in:
Jan-Lukas Else 2022-12-27 08:13:13 +01:00
parent 47a42e1c55
commit 6a2642f25f
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ func (a *goBlog) checkActivityStreamsRequest(next http.Handler) http.Handler {
ct.NewMediaType(contenttype.HTML),
ct.NewMediaType(contenttype.AS),
ct.NewMediaType(contenttype.LDJSON),
ct.NewMediaType(contenttype.LDJSON + "; profile=\"https://www.w3.org/ns/activitystreams\""),
}
}
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {