Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The object returned by the response.getHeaders() method does not prot… #567

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion lib/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function Response(options) {

// Store the headers in lower case.
for (var field in options.headers) {
if (options.headers.hasOwnProperty(field)) {
if (Object.prototype.hasOwnProperty.call(options.headers, field)) {
this.headers[field.toLowerCase()] = options.headers[field];
}
}
Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "oauth2-server",
"name": "@vista/oauth2-server",
"description": "Complete, framework-agnostic, compliant and well tested module for implementing an OAuth2 Server in node.js",
"version": "3.0.0",
"version": "3.0.4",
"keywords": [
"oauth",
"oauth2"
Expand All @@ -13,19 +13,20 @@
{ "name" : "Tiago Ribeiro", "email": "[email protected]" },
{ "name": "Michael Salinger", "email": "[email protected]" },
{ "name": "Nuno Sousa" },
{ "name": "Max Truxa" }
{ "name": "Max Truxa" },
{ "name": "Fabiano Taioli" }
],
"main": "index.js",
"dependencies": {
"basic-auth": "1.1.0",
"bluebird": "3.5.0",
"lodash": "4.17.4",
"basic-auth": "2.0.1",
"bluebird": "3.7.2",
"lodash": "^4.17.19",
"promisify-any": "2.0.1",
"statuses": "1.3.1",
"type-is": "1.6.15"
"statuses": "^2.0.0",
"type-is": "1.6.18"
},
"devDependencies": {
"jshint": "2.9.4",
"jshint": "^2.12.0",
"mocha": "3.3.0",
"should": "11.2.1",
"sinon": "2.3.2"
Expand Down
Loading