This commit is contained in:
Hitesh 2019-08-02 16:03:25 -07:00 committed by AJ ONeal
parent ae4bc64fa0
commit 29e501d8b3
3 changed files with 4 additions and 1 deletions

View File

@ -1,2 +1,3 @@
AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com/)
Nyaundi Brian <danleyb2@gmail.com> (https://danleyb2.online/)
Hitesh Walia <hiteshwar.walia@gmail.com>

View File

@ -128,6 +128,7 @@ module.exports.create = function(config) {
headers: { Authorization: auth },
json: data || true
};
return request(req).then(function(resp) {
if (resp.statusCode < 200 || resp.statusCode >= 300) {
req.headers.Authorization = redacted;

View File

@ -20,7 +20,8 @@
],
"author": "Nyaundi Brian <danleyb2@gmail.com> (https://danleyb2.online/)",
"contributors": [
"AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com/)"
"AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com/)",
"Hitesh Walia <hiteshwar.walia@gmail.com>"
],
"license": "MPL-2.0",
"dependencies": {},