From d70c44f84ff347685841101fa589cf7ef2312bf8 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 23 Jul 2021 14:12:47 +0200 Subject: Added a content type parser for x-git-receive-pack --- packages/server/src/app.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'packages/server/src') diff --git a/packages/server/src/app.ts b/packages/server/src/app.ts index 71fe107..deddf00 100644 --- a/packages/server/src/app.ts +++ b/packages/server/src/app.ts @@ -33,6 +33,7 @@ export default function buildApp(settings: Settings, dist_dir: string): FastifyI } fastify.addContentTypeParser("application/x-git-upload-pack-request", (req, payload, done) => done(null, payload)); + fastify.addContentTypeParser("application/x-git-receive-pack-request", (req, payload, done) => done(null, payload)); fastify.register(api, { prefix: "/api/v1", config: { settings: settings } }); -- cgit v1.2.3-18-g5258