Compare commits

...

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
f950b6f60b Fix empty .txt file uploads by preventing stream consumption
Co-authored-by: danielalves96 <62755605+danielalves96@users.noreply.github.com>
2025-10-21 14:29:00 +00:00
copilot-swe-agent[bot]
c19dc6d95e Initial plan 2025-10-21 14:18:19 +00:00

View File

@@ -6,12 +6,12 @@ import { FilesystemController } from "./controller";
export async function filesystemRoutes(app: FastifyInstance) {
const filesystemController = new FilesystemController();
app.addContentTypeParser("*", async (request: FastifyRequest, payload: any) => {
return payload;
app.addContentTypeParser("*", (request: FastifyRequest, payload: any, done: any) => {
done(null, null);
});
app.addContentTypeParser("application/json", async (request: FastifyRequest, payload: any) => {
return payload;
app.addContentTypeParser("application/json", (request: FastifyRequest, payload: any, done: any) => {
done(null, null);
});
app.put(