mirror of
https://github.com/1f349/orchid.git
synced 2024-11-09 23:02:53 +00:00
Fix expecting wrong status code for acme api calls
This commit is contained in:
parent
6057f82198
commit
78734a1e01
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user