Преглед на файлове

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

Benoît Hubert преди 8 години
родител
ревизия
a50fe165e8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 });