Skip to content

Commit

Permalink
fix issue expressjs#13
Browse files Browse the repository at this point in the history
  • Loading branch information
troygoode committed Dec 11, 2013
1 parent 7a86f6f commit f1a932b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
var maxAge = options.maxAge && options.maxAge.toString();
if (maxAge && maxAge.length) {
return {
key: 'Access-Control-Allow-Max-Age',
key: 'Access-Control-Max-Age',
value: maxAge
};
}
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.1.0"
, "version": "2.1.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
2 changes: 1 addition & 1 deletion test/cors.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@
res = fakeResponse();
res.end = function () {
// assert
res.getHeader('Access-Control-Allow-Max-Age').should.equal('456');
res.getHeader('Access-Control-Max-Age').should.equal('456');
done();
};

Expand Down

0 comments on commit f1a932b

Please sign in to comment.