Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Commit 4478a23

Browse files
author
Adis Nezirovic
committed
BUG/MEDIUM: Check return code for new cert orders.
1 parent 72d0395 commit 4478a23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

acme.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,10 @@ local function new_order(applet)
315315
resource="newOrder"}
316316
if not resp then
317317
return http.response.create{status_code=500, data=err}:send(applet)
318+
else if resp.status_code ~= 201 then
319+
return resp:send(applet)
318320
end
319321

320-
-- if resp.code == 201
321322
local resp_json = resp:json()
322323
local finalize = resp_json.finalize
323324
local authorizations = resp_json.authorizations

0 commit comments

Comments
 (0)