This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const http = require('http'); | |
const request = http.request; | |
const net = require('net'); | |
const httpProxy = require('http-proxy'); | |
let auth = "secret-string"; | |
auth = new Buffer(auth).toString('base64'); | |
auth = "Basic " + auth; |