Преглед изворни кода

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 });