(r *http.Request)
| 23 | } |
| 24 | |
| 25 | func IsActivityPubRequest(r *http.Request) bool { |
| 26 | accept := r.Header.Get("Accept") |
| 27 | return strings.Contains(accept, "application/activity+json") || |
| 28 | accept == "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"" |
| 29 | } |
no outgoing calls
no test coverage detected