mirror of
https://github.com/1f349/orchid.git
synced 2024-12-21 23:54:12 +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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if trip.StatusCode != http.StatusOK {
|
if trip.StatusCode != http.StatusAccepted {
|
||||||
return fmt.Errorf("Trip response status code was not 200")
|
return fmt.Errorf("Trip response status code was not 200")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
@ -68,7 +68,7 @@ func (h *HttpAcmeProvider) CleanUp(domain, token, keyAuth string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if trip.StatusCode != http.StatusOK {
|
if trip.StatusCode != http.StatusAccepted {
|
||||||
return fmt.Errorf("Trip response status code was not 200")
|
return fmt.Errorf("Trip response status code was not 200")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
@ -121,7 +121,7 @@ func (h *HttpAcmeProvider) authCheckRequest(method, url, domain, token, keyAuth
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if resp.StatusCode == http.StatusOK {
|
if resp.StatusCode == http.StatusAccepted {
|
||||||
// just return
|
// just return
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user