From 03ed564bce1943da20ce2d43ba13f7be197ce5a5 Mon Sep 17 00:00:00 2001 From: Zalmoxisus Date: Wed, 17 Aug 2016 18:37:52 +0300 Subject: [PATCH] Parse x-www-form-urlencoded data --- lib/worker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/worker.js b/lib/worker.js index 0729265..5bfa4b4 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -20,6 +20,7 @@ module.exports.run = function(worker) { app.use(cors({ methods: 'POST' })); app.use(bodyParser.json()); + app.use(bodyParser.urlencoded({ extended: false })); app.post('/', function(req, res) { if (!req.body) return res.status(404).end(); if (!store) store = createStore(worker.options);