diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-23 14:12:47 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-23 14:12:47 +0200 |
commit | d70c44f84ff347685841101fa589cf7ef2312bf8 (patch) | |
tree | 1c7ac24a7d0baf97733893fd15dbe2cf81edae3f /packages | |
parent | 22e44b4ef5f74f7058c01ade82ce14aaf9214f18 (diff) |
Added a content type parser for x-git-receive-pack
Diffstat (limited to 'packages')
-rw-r--r-- | packages/server/src/app.ts | 1 |
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 } }); |