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:
parent
128d7d4f3a
commit
bd8c5009fc
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue