1
私はこのgithubを使用していますapi。Github Apiの偽薬の検証を無効にする
var github = new GitHubApi({
// optional
debug: true,
protocol: "http",
host: "github.my-GHE-enabled-company.com", // should be api.github.com for GitHub
pathPrefix: "/api/v3", // for some GHEs; none for GitHub
headers: {
"user-agent": "My-Cool-GitHub-App" // GitHub is happy with a unique user agent
},
Promise: require('bluebird'),
followRedirects: false, // default: true; there's currently an issue with non-get redirects, so allow ability to disable follow-redirects
timeout: 5000
});
私は、ノードのjsに、このオブジェクトから起こってすべてのHTTP要求に証明書の検証をオフにしたい。
どのように送信するには、特定のヘッダー値をオフに送信する必要がありますか?