Ricardo 06e521cfa7 fix: skip Fedify middleware for non-GET requests in contentNegotiationRoutes
The contentNegotiationRoutes getter is mounted at root / and was passing
ALL requests through Fedify, including POST requests to admin routes.
fromExpressRequest() calls Readable.toWeb(req) which consumes the body
stream, causing "response body object should not be distributed or locked"
errors when admin controllers try to read req.body.

The v1.0.2 fix only protected routesPublic (mounted at /activitypub).
This fixes the actual culprit by skipping non-GET/HEAD methods in
contentNegotiationRoutes, since content negotiation and NodeInfo are
both GET-only concerns.
2026-02-19 12:52:02 +01:00
Description
No description provided
1 MiB
Languages
JavaScript 71.3%
Nunjucks 14.6%
CSS 14.1%