1
0

Merge branch 'master' of github.com:mikeflynn/node-ssl-root-cas

Dieser Commit ist enthalten in:
AJ ONeal 2016-06-21 17:17:01 +08:00
Commit 69fce496ad

Datei anzeigen

@ -218,6 +218,12 @@ function run(filename) {
return; return;
} }
if (response.headers['content-type'] !== 'text/plain') {
console.error("Fetching failed with incorrect content type %s", response.headers['content-type']);
reject({ code: 2, error: "Fetching failed with incorrect content type " + response.headers['content-type'] });
return;
}
var lines = body.split("\n") var lines = body.split("\n")
, certs = parseCertData(lines) , certs = parseCertData(lines)
, pemsFile = path.join(outputPemsDir, 'mozilla-certdata.txt') , pemsFile = path.join(outputPemsDir, 'mozilla-certdata.txt')