From 4e94c8ea56701f8a3c2c0429c0c0128d662f9baa Mon Sep 17 00:00:00 2001 From: "girish@cloudron.io" Date: Wed, 13 Jan 2016 16:46:01 -0800 Subject: [PATCH] updateContact gets 202 and not 200 --- src/cert/acme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cert/acme.js b/src/cert/acme.js index 8ec35666d..e5d734aa4 100644 --- a/src/cert/acme.js +++ b/src/cert/acme.js @@ -141,7 +141,7 @@ Acme.prototype.updateContact = function (registrationUri, callback) { var that = this; this.sendSignedRequest(registrationUri, JSON.stringify(payload), function (error, result) { if (error) return callback(new AcmeError(AcmeError.EXTERNAL_ERROR, 'Network error when registering user: ' + error.message)); - if (result.statusCode !== 200) return callback(new AcmeError(AcmeError.EXTERNAL_ERROR, util.format('Failed to update contact. Expecting 200, got %s %s', result.statusCode, result.text))); + if (result.statusCode !== 202) return callback(new AcmeError(AcmeError.EXTERNAL_ERROR, util.format('Failed to update contact. Expecting 202, got %s %s', result.statusCode, result.text))); debug('updateContact: contact of user updated to %s', that.email);