Skip to content
This repository has been archived by the owner on Jul 15, 2018. It is now read-only.

Commit

Permalink
lack of servletrequest workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
olegp committed Jan 29, 2012
1 parent 88925d9 commit 1bc5abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/params.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports.middleware = function params(next, app) {

var params, queryParams, postParams;
var desc = Object.getOwnPropertyDescriptor(req, "postParams");
var servletRequest = req.env.servletRequest;
var servletRequest = req.env.servletRequest || { getCharacterEncoding: function() {} };

/**
* An object containing the parsed HTTP parameters sent with this request.
Expand Down

0 comments on commit 1bc5abc

Please sign in to comment.