Skip to content

Commit 03d49bd

Browse files
committed
fix: acme-challenge handler bug
1 parent 362fff4 commit 03d49bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@
7272
def acme_challenge(cid):
7373
r = http_challenge_solver.get_challenge(cid)
7474
print(f"[{request.method}] /.well-known/acme-challenge/{cid} = {r}")
75-
return "", 404 if r is None else (r, 200)
75+
if r is None:
76+
return "", 404
77+
return r, 200
7678

7779

7880
@api.errorhandler(CertApiException)

0 commit comments

Comments
 (0)