mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-19 22:00:50 -04:00
fix: dry certification config (#40927)
* fix: move cert config to config * fix: move gitHubUserAgent to misc * feat: rename maps * feat: relocate oldDataVizId * fix: correct path for gitHubUserAgent Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import request from 'request';
|
||||
|
||||
import constantStrings from '../utils/constantStrings.json';
|
||||
import { gitHubUserAgent } from '../../../../config/misc';
|
||||
import { getRedirectParams } from '../utils/redirection';
|
||||
|
||||
const githubClient = process.env.GITHUB_ID;
|
||||
@@ -155,7 +155,7 @@ module.exports = function(app) {
|
||||
function githubCalls(req, res, next) {
|
||||
var githubHeaders = {
|
||||
headers: {
|
||||
'User-Agent': constantStrings.gitHubUserAgent
|
||||
'User-Agent': gitHubUserAgent
|
||||
},
|
||||
port: 80
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user