mirror of https://github.com/jlelse/GoBlog
Detect more ActivityStreams requests
This commit is contained in:
parent
47a42e1c55
commit
6a2642f25f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue