From 2406c870e6ba362f75544200caf0e52165713847 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 4 Nov 2018 13:42:55 -0700 Subject: [PATCH] note need to limit download size --- node.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/node.js b/node.js index b0b1c8e..59db271 100644 --- a/node.js +++ b/node.js @@ -27,13 +27,16 @@ ACME.challengeTests = { return me._request({ url: url }).then(function (resp) { var err; + // TODO limit the number of bytes that are allowed to be downloaded if (auth.keyAuthorization === resp.body.toString('utf8').trim()) { return true; } err = new Error( "Error: Failed HTTP-01 Dry Run.\n" - + "curl '" + url + "' does not return '" + auth.keyAuthorization + "'\n" + + "curl '" + url + "'\n" + + "Expected: '" + auth.keyAuthorization + "'\n" + + "Got: '" + resp.body + "'\n" + "See https://git.coolaj86.com/coolaj86/acme-v2.js/issues/4" ); err.code = 'E_FAIL_DRY_CHALLENGE';