diff options
| author | grunfink <grunfink@comam.es> | 2026-08-06 19:00:20 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-08-06 19:00:20 +0200 |
| commit | b3af60308378aaf0e5f1cf38948fc560a4298f6b (patch) | |
| tree | 7351f399fd623c7ad1147b640ae9d02ad68434c8 | |
| parent | ca60d65cb618da37e9c842706480d8b863c77055 (diff) | |
Fixed redirection loop in the /users special case.
| -rw-r--r-- | httpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -504,9 +504,9 @@ void httpd_connection(FILE *f) q_path = xs_crop_i(q_path, strlen(p), 0); /* add users endpoint redirection mimic Mastodon behaviour */ - const char *users_endpoint = "/users"; + const char *users_endpoint = "/users/"; if (xs_startswith(q_path, users_endpoint)) { - q_path = xs_crop_i(q_path, strlen(users_endpoint), 0); + q_path = xs_crop_i(q_path, strlen(users_endpoint) - 1, 0); status = HTTP_STATUS_FOUND; } |