aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-29 11:34:44 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-29 11:34:44 +0100
commit165cdc75bf1942ed687f78094c2bd366839a7c99 (patch)
tree4b174114bf175603202c3672c5dc04c22582701d /server.ts
parent14063e965672ed724b7bfea6686acc14923e07a7 (diff)
downloadPeerTube-165cdc75bf1942ed687f78094c2bd366839a7c99.tar.gz
PeerTube-165cdc75bf1942ed687f78094c2bd366839a7c99.tar.zst
PeerTube-165cdc75bf1942ed687f78094c2bd366839a7c99.zip
Fix well known and json parser with mastodon
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index 84535c7a5..0e963c3d3 100644
--- a/server.ts
+++ b/server.ts
@@ -76,7 +76,10 @@ app.use(morgan('combined', {
76 stream: { write: logger.info } 76 stream: { write: logger.info }
77})) 77}))
78// For body requests 78// For body requests
79app.use(bodyParser.json({ limit: '500kb' })) 79app.use(bodyParser.json({
80 type: 'application/*+json',
81 limit: '500kb'
82}))
80app.use(bodyParser.urlencoded({ extended: false })) 83app.use(bodyParser.urlencoded({ extended: false }))
81 84
82// ----------- Tracker ----------- 85// ----------- Tracker -----------