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

Commit 7ac5bd7

Browse files
author
Adis Nezirovic
committed
BUG/MINOR: Handle unsuccessful registrations.
1 parent 3c5dff3 commit 7ac5bd7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

acme.lua

+2
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ local function new_order(applet)
290290

291291
if not resp then
292292
return http.response.create{status_code=500, data=err}:send(applet)
293+
elseif resp.status_code ~= 200 and resp.status_code ~= 201 then
294+
return resp:send(applet)
293295
end
294296

295297
local aliases = {}

0 commit comments

Comments
 (0)