Slon/Endpoints/Get/ActivityPub: Properly check for JSON in Accept header

Unlike whatever the hell I was thinking with 5f2ed89, sleep deprivation,
maybe? Oh well.
This commit is contained in:
Alec Murphy 2025-03-19 12:38:24 -04:00
parent 128d7d4f3a
commit bd8c5009fc

View file

@ -1,4 +1,4 @@
if (String.BeginsWith("/users/", session->path()) && !StrICmp("json", session->header("accept"))) {
if (String.BeginsWith("/users/", session->path()) && StrFind("json", session->header("accept"))) {
@slon_activitypub_users_get(session);
return;
}