Skip to content

Commit

Permalink
forgot another pause/resume pair
Browse files Browse the repository at this point in the history
  • Loading branch information
troygoode committed Jul 6, 2014
1 parent 9af7927 commit 893cf2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@
}

if (originCallback) {
req.pause(); // make sure downstream middleware don't miss any data events
originCallback(req.headers.origin, function (err, origin) {
req.resume();
if (err || !origin) {
next(err);
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cors"
, "version": "2.4.0"
, "version": "2.4.1"
, "author": "Troy Goode <troygoode@gmail.com> (https://github.com/troygoode/)"
, "description": "middleware for dynamically or statically enabling CORS in express/connect applications"
, "keywords": ["cors", "express", "connect", "middleware"]
Expand Down

0 comments on commit 893cf2c

Please sign in to comment.