Skip to content

Commit 7104348

Browse files
committed
Fixed bug in todo app
1 parent 6ea45bf commit 7104348

File tree

1 file changed

+1
-1
lines changed
  • samples/features/json/todo-app/nodejs-express4-rest-api

1 file changed

+1
-1
lines changed

samples/features/json/todo-app/nodejs-express4-rest-api/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var bodyParser = require('body-parser');
33

44
var app = express();
5-
app.use(bodyParser.raw());
5+
app.use(bodyParser.text());
66
app.use('/todo', require('./routes/todo'));
77

88
// catch 404 and forward to error handler

0 commit comments

Comments
 (0)