diff --git a/ca-store-generator.js b/ca-store-generator.js index 4d2c173..1d66010 100644 --- a/ca-store-generator.js +++ b/ca-store-generator.js @@ -218,7 +218,7 @@ function run(filename) { return; } - if (response.headers['content-type'] !== 'text/plain') { + if (response.headers['content-type'].indexOf('text/plain') !== 0) { 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;