Skip to content

Commit 5a4e912

Browse files
committed
1 parent 9db1367 commit 5a4e912

File tree

5 files changed

+22
-2
lines changed

5 files changed

+22
-2
lines changed

History.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@ unreleased
22
==========
33

44
5+
6+
- deprecate `verify` option to `json` -- use `body-parser` module directly
7+
- deprecate `verify` option to `urlencoded` -- use `body-parser` module directly
8+
- deprecate things with `depd` module
9+
- use `finalhandler` for final response handling
10+
- use `media-typer` to parse `content-type` for charset
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+
521

622
3.10.5 / 2014-06-11
723
===================

examples/mvc/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ app.use(express.cookieParser('some secret here'));
3535
app.use(express.session());
3636

3737
// parse request bodies (req.body)
38-
app.use(express.bodyParser());
38+
app.use(express.urlencoded({ extended: true }));
3939

4040
// support _method (PUT in forms etc)
4141
app.use(express.methodOverride());

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"license": "MIT",
2727
"dependencies": {
2828
"buffer-crc32": "0.2.3",
29-
"connect": "2.19.6",
29+
"connect": "2.20.2",
3030
"commander": "1.3.2",
3131
"debug": "1.0.2",
3232
"escape-html": "1.0.1",

test/acceptance/mvc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ describe('mvc', function(){
3333
it('should update the pet', function(done){
3434
request(app)
3535
.put('/pet/3')
36+
.set('Content-Type', 'application/x-www-form-urlencoded')
3637
.send({ pet: { name: 'Boots' } })
3738
.end(function(err, res){
3839
if (err) return done(err);
@@ -95,6 +96,7 @@ describe('mvc', function(){
9596
it('should update the user', function(done){
9697
request(app)
9798
.put('/user/1')
99+
.set('Content-Type', 'application/x-www-form-urlencoded')
98100
.send({ user: { name: 'Tobo' }})
99101
.end(function(err, res){
100102
if (err) return done(err);
@@ -109,6 +111,7 @@ describe('mvc', function(){
109111
it('should create a pet for user', function(done){
110112
request(app)
111113
.post('/user/2/pet')
114+
.set('Content-Type', 'application/x-www-form-urlencoded')
112115
.send({ pet: { name: 'Snickers' }})
113116
.expect('Location', '/user/2')
114117
.expect(302, function(err, res){

test/support/env.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11

22
process.env.NODE_ENV = 'test';
3+
process.env.NO_DEPRECATION = 'connect';

0 commit comments

Comments
 (0)