aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-23 14:12:47 +0200
committerHampusM <hampus@hampusmat.com>2021-07-23 14:12:47 +0200
commitd70c44f84ff347685841101fa589cf7ef2312bf8 (patch)
tree1c7ac24a7d0baf97733893fd15dbe2cf81edae3f /packages
parent22e44b4ef5f74f7058c01ade82ce14aaf9214f18 (diff)
Added a content type parser for x-git-receive-pack
Diffstat (limited to 'packages')
-rw-r--r--packages/server/src/app.ts1
1 files changed, 1 insertions, 0 deletions
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 } });