Solve bodyparser production error

Modified the option to true in the bodyparser.urlencode configuration

James Peret 7 ans auparavant
Parent
Commettre
da1c692b9f
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      package.json
  2. 1 1
      src/multi-adapter.coffee

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "hubot-multi-adapter",
3
-  "version": "0.3.7",
3
+  "version": "0.3.8",
4 4
   "description": "A Hubot adapter that can receive messages thru socket.io or telegram",
5 5
   "main": "src/multi-adapter",
6 6
   "scripts": {

+ 1 - 1
src/multi-adapter.coffee

@@ -8,7 +8,7 @@ logger = require("./logger")
8 8
 express = require('express')
9 9
 app = express()
10 10
 bodyParser = require("body-parser")
11
-app.use(bodyParser.urlencoded({ extended: false }))
11
+app.use(bodyParser.urlencoded({ extended: true }))
12 12
 app.use(bodyParser.json());
13 13
 app.use(require('morgan')("default", { "stream": logger.stream }));
14 14