mirror of
https://git.checksum.fail/alec/slon.git
synced 2025-12-08 12:09:55 +02:00
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:
@@ -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);
|
@slon_activitypub_users_get(session);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user