Skip to content

Commit d198d87

Browse files
committed
1 parent 91d0232 commit d198d87

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

HISTORY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ unreleased
99
- deps: statuses@'>= 1.5.0 < 2'
1010
1111
- Added encoding MIK
12-
12+
13+
- Fix parsing array brackets after index
1314

1415
1.18.3 / 2018-05-14
1516
===================

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"http-errors": "1.7.2",
1717
"iconv-lite": "0.4.24",
1818
"on-finished": "~2.3.0",
19-
"qs": "6.6.0",
19+
"qs": "6.7.0",
2020
"raw-body": "2.3.3",
2121
"type-is": "~1.6.16"
2222
},

test/urlencoded.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ describe('bodyParser.urlencoded()', function () {
167167
request(this.server)
168168
.post('/')
169169
.set('Content-Type', 'application/x-www-form-urlencoded')
170-
.send('foo[0][bar]=baz&foo[0][fizz]=buzz')
171-
.expect(200, '{"foo":[{"bar":"baz","fizz":"buzz"}]}', done)
170+
.send('foo[0][bar]=baz&foo[0][fizz]=buzz&foo[]=done!')
171+
.expect(200, '{"foo":[{"bar":"baz","fizz":"buzz"},"done!"]}', done)
172172
})
173173

174174
it('should parse deep object', function (done) {

0 commit comments

Comments
 (0)