From 547a93127ac720384099fd693d1766f616fc81aa Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Mon, 30 May 2016 13:02:20 -0700 Subject: [PATCH] alias: handle 304 --- lib/alias.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/alias.js b/lib/alias.js index 83d1d7f..2890466 100644 --- a/lib/alias.js +++ b/lib/alias.js @@ -204,6 +204,11 @@ export default class Alias extends Now { } }); + if (304 === res.status) { + console.log('> Certificate already issued.'); + return; + } + const body = await res.json(); if (this._debug) console.timeEnd(`> [debug] /certs #${attempt}`);