Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed issue #5

  • Loading branch information...
commit af01e164bc3a9047aff18bb27dea8a371e0d079d 1 parent f418d7a
@fgnass authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/form2json.js
  2. +1 −1  package.json
View
2  lib/form2json.js
@@ -100,7 +100,7 @@ exports.decode = function(data) {
exports.middleware = function form2json(req, res, next) {
if (!req.json) {
var flat = req.body || req.query
- req.json = flat ? exports.transform(body) : {}
+ req.json = flat ? exports.transform(flat) : {}
}
next()
}
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "form2json",
- "version": "0.0.3",
+ "version": "0.0.4",
"description": "Advanced decoder for form-urlencoded data",
"homepage": "http://github.com/fgnass/form2json",
"author": {

0 comments on commit af01e16

Please sign in to comment.
Something went wrong with that request. Please try again.