Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed issue #5

  • Loading branch information...
commit af01e164bc3a9047aff18bb27dea8a371e0d079d 1 parent f418d7a
Felix Gnass authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  lib/form2json.js
  2. +1 1  package.json
2  lib/form2json.js
@@ -100,7 +100,7 @@ exports.decode = function(data) {
100 100 exports.middleware = function form2json(req, res, next) {
101 101 if (!req.json) {
102 102 var flat = req.body || req.query
103   - req.json = flat ? exports.transform(body) : {}
  103 + req.json = flat ? exports.transform(flat) : {}
104 104 }
105 105 next()
106 106 }
2  package.json
... ... @@ -1,6 +1,6 @@
1 1 {
2 2 "name": "form2json",
3   - "version": "0.0.3",
  3 + "version": "0.0.4",
4 4 "description": "Advanced decoder for form-urlencoded data",
5 5 "homepage": "http://github.com/fgnass/form2json",
6 6 "author": {

0 comments on commit af01e16

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