Ver código fonte

correction du warning pour param manquant sur bodyParser.urlencoded()

Benoît Hubert 8 anos atrás
pai
commit
a50fe165e8
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      sandboxApp.js

+ 1 - 1
sandboxApp.js

@@ -10,7 +10,7 @@ var examples     = require(examplesJSON);
 
 app.use(express.static(__dirname));
 app.use(bodyParser.json());
-app.use(bodyParser.urlencoded());
+app.use(bodyParser.urlencoded({ extended: true }));
 
 function addExample(slug, title) {
   examples.push({ slug: slug, title: title });