diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-29 11:34:44 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-29 11:34:44 +0100 |
commit | 165cdc75bf1942ed687f78094c2bd366839a7c99 (patch) | |
tree | 4b174114bf175603202c3672c5dc04c22582701d /server.ts | |
parent | 14063e965672ed724b7bfea6686acc14923e07a7 (diff) | |
download | PeerTube-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.ts | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |
79 | app.use(bodyParser.json({ limit: '500kb' })) | 79 | app.use(bodyParser.json({ |
80 | type: 'application/*+json', | ||
81 | limit: '500kb' | ||
82 | })) | ||
80 | app.use(bodyParser.urlencoded({ extended: false })) | 83 | app.use(bodyParser.urlencoded({ extended: false })) |
81 | 84 | ||
82 | // ----------- Tracker ----------- | 85 | // ----------- Tracker ----------- |