mirror of
https://github.com/svemagie/indiekit-endpoint-activitypub.git
synced 2026-04-02 15:44:58 +02:00
06e521cfa7df5c6489222e2b0b83b3e84ffdc8d8
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.
Description
No description provided
Languages
JavaScript
71.3%
Nunjucks
14.6%
CSS
14.1%