Solve bodyparser production error

Modified the option to true in the bodyparser.urlencode configuration

James Peret %!s(int64=7) %!d(string=hace) años
padre
commit
da1c692b9f
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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