Skip to content

Commit

Permalink
docs: Remove old body-parser module
Browse files Browse the repository at this point in the history
The bodyparser module is deprected in express 4+.

Closes #238.
  • Loading branch information
dbauszus-glx authored and mcab committed Oct 15, 2022
1 parent 345ec94 commit e01eade
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,12 @@ var saml2 = require('saml2-js');
var fs = require('fs');
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({
extended: true
}));
// If you're using express <4.0:
// var bodyParser = require('body-parser');
// app.use(bodyParser.urlencoded({
// extended: true
// }));
app.use(express.urlencoded());

// Create service provider
var sp_options = {
Expand Down

0 comments on commit e01eade

Please sign in to comment.