From 78734a1e018268c76b7d766ea7beffbe6ef60829 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Tue, 11 Jul 2023 14:23:28 +0100 Subject: [PATCH] Fix expecting wrong status code for acme api calls --- http-acme/http-acme-provider.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/http-acme/http-acme-provider.go b/http-acme/http-acme-provider.go index 4b6e09f..e936dc9 100644 --- a/http-acme/http-acme-provider.go +++ b/http-acme/http-acme-provider.go @@ -54,7 +54,7 @@ func (h *HttpAcmeProvider) Present(domain, token, keyAuth string) error { if err != nil { return err } - if trip.StatusCode != http.StatusOK { + if trip.StatusCode != http.StatusAccepted { return fmt.Errorf("Trip response status code was not 200") } return nil @@ -68,7 +68,7 @@ func (h *HttpAcmeProvider) CleanUp(domain, token, keyAuth string) error { if err != nil { return err } - if trip.StatusCode != http.StatusOK { + if trip.StatusCode != http.StatusAccepted { return fmt.Errorf("Trip response status code was not 200") } return nil @@ -121,7 +121,7 @@ func (h *HttpAcmeProvider) authCheckRequest(method, url, domain, token, keyAuth if err != nil { return nil, err } - if resp.StatusCode == http.StatusOK { + if resp.StatusCode == http.StatusAccepted { // just return return resp, nil }