config.githubUsername was hardcoded

This commit is contained in:
Pol.Alvarez@BSC 2018-03-01 12:14:03 +01:00
parent 73730df429
commit 6306500fa6

View File

@ -25,7 +25,7 @@ const getLabels = function (req) {
const options = {
hostname: 'api.github.com',
path: path,
headers: { 'User-Agent': 'kafkasl' }
headers: { 'User-Agent': config.githubUsername }
};
return new Promise((resolve, reject) => {
const request = https.get(options, (response) => {