소스 검색

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