Skip to content

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

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

Open
wants to merge 14 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
54 changes: 38 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,54 @@
{
"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"
],
"contributors": [
{ "name": "Thom Seddon", "email": "thom@seddonmedia.co.uk" },
{ "name": "Lars F. Karlström" , "email": "lars@lfk.io" },
{ "name": "Rui Marinho", "email": "ruipmarinho@gmail.com" },
{ "name" : "Tiago Ribeiro", "email": "tiago.ribeiro@gmail.com" },
{ "name": "Michael Salinger", "email": "mjsalinger@gmail.com" },
{ "name": "Nuno Sousa" },
{ "name": "Max Truxa" }
{
"name": "Thom Seddon",
"email": "thom@seddonmedia.co.uk"
},
{
"name": "Lars F. Karlström",
"email": "lars@lfk.io"
},
{
"name": "Rui Marinho",
"email": "ruipmarinho@gmail.com"
},
{
"name": "Tiago Ribeiro",
"email": "tiago.ribeiro@gmail.com"
},
{
"name": "Michael Salinger",
"email": "mjsalinger@gmail.com"
},
{
"name": "Nuno Sousa"
},
{
"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",
"mocha": "3.3.0",
"jshint": "^2.12.0",
"mocha": "10.8.2",
"should": "11.2.1",
"sinon": "2.3.2"
},
Expand Down