36 Commits
Author SHA1 Message Date
Eric Ireland 2f244e31f2 Bound HTTP response writes with a send timeout
Assisted-by: OpenAI Codex (GPT-5)
Reviewed-by: Eric Ireland
2026-09-11 11:41:55 +10:00
grunfink 11af00194e Bumped copyright year. 2026-01-01 17:01:03 +01:00
grunfink 1ac922796b Minor tweak to Stefano's code. 2025-10-21 13:57:43 +02:00
Stefano Marinelli 2d433afc27 Enhances Mastodon API compatibility by adding support for displaying remote users' follower/following/post counts and their posts when viewing profiles in Mastodon-compatible apps (Fedilab, Tusky, etc.).
Fixes for Moshidon and improvements for better compatibility with HAProxy
2025-10-18 21:33:31 +02:00
grunfink 08f03cde6b Added some const here and there. 2025-07-08 17:30:45 +02:00
default 2bfbe6215f Fixed bug in xs_httpd_request(). 2025-02-06 10:48:22 +01:00
Santtu Lakkala 1089b24171 Rewrite http header parsing 2025-02-06 00:47:49 +02:00
default 932227bbac Bumped copyright year. 2025-01-08 16:59:14 +01:00
default a6bf1ee0d0 Use the raw_path for proxying (as some media may include ? arguments). 2024-11-07 20:47:37 +01:00
Nicolai Dagestad ba5cbb6d82 URL decode data after splitting the arguments
Data decoding should happen after the parsing if not, a '?', '&', '#'
or other character decoded will interfere with the parsing. e.g. the
users password contains a '&', then it is truncated on that character,
and login will fail.
2024-09-15 18:39:49 +02:00
default 0218e964b0 Backport from xs. 2024-08-30 19:10:26 +02:00
Louis Brauer 26fbda787d Translate status codes to canonical status texts
Use those in HTTP responses instead of "OK"/"ERROR".
Apps like Tokodon show only the status text in unexpected responses.
2024-05-27 19:01:04 +02:00
default 8cf7559a7e Added more const. 2024-05-23 10:01:37 +02:00
default 4777fc86cb Added const everywhere. 2024-05-21 14:12:15 +02:00
default 00b019b890 Backport from xs. 2024-03-09 08:32:20 +01:00
default 755d997fb1 Updated copyright year. 2024-01-04 09:22:03 +01:00
default c314e995a4 Backport from xs. 2023-09-25 18:25:09 +02:00
default 0f8c0cd694 Updated comment in headers. 2023-07-28 11:34:18 +02:00
default 9c4e491497 Backport from xs. 2023-05-11 10:48:37 +02:00
default 11a89ef0f9 Backport from xs. 2023-04-20 12:46:59 +02:00
default e144b0dc67 Add OK or ERROR to HTTP response. 2023-02-14 08:29:21 +01:00
default 876bebd9ac Backport from xs. 2023-01-28 17:49:02 +01:00
default a38c7aeadc Updated year in copyright notices. 2023-01-17 09:50:16 +01:00
default bb0d8f2a27 Backport from xs. 2023-01-12 09:28:02 +01:00
Andrew Alderwick 75d0b1a932 Fix 500 errors in (OpenBSD) relayd. 2022-12-20 21:16:51 +00:00
default aa82e14bc7 Backport from xs. 2022-12-11 10:33:01 +01:00
default 0337c71cf4 Backport from xs. 2022-12-11 09:46:27 +01:00
default 7336a8ee3e Updated RELEASE_NOTES. 2022-12-10 14:49:26 +01:00
default fa870ab358 Backport from xs. 2022-10-25 09:32:41 +02:00
default af95a58263 Some emoticon tweaks. 2022-10-16 20:23:01 +02:00
default 0d79e465e6 Use multipart/form-data for posts (on the way to supporting uploads). 2022-10-16 11:08:50 +02:00
default a636cf8b25 New function static_get(). 2022-09-28 09:29:09 +02:00
default b070d2d8f8 The HTTP request headers are stored in a plain dict. 2022-09-25 07:42:57 +02:00
default 1d694a245a xs_httpd_request() also returns the payload. 2022-09-23 20:28:23 +02:00
default e5167b7b49 Renamed xs_splitn() to xs_split_n(). 2022-09-19 23:08:59 +02:00
default 67288a763b Imported xs. 2022-09-19 20:41:11 +02:00