From ab4c6aa6ae8ac827c4e2ca56c5d4f4a76772a91c Mon Sep 17 00:00:00 2001 From: nkzawa Date: Thu, 20 Feb 2020 21:29:21 +0900 Subject: [PATCH] accept any content-type --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cccb872..3102250 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ const createServer = (options) => { const path = options.path || process.cwd() const app = express() - app.use(express.json()) + app.use(express.json({ type: '*/*' })) app.post('/1/indexes/:indexName/query', async (req, res) => { const { body, params: { indexName } } = req