mirror of https://github.com/shred/acme4j
Expect Account Key Roll-Over to return HTTP_OK on success
parent
158c3c46d1
commit
9ce3718861
|
@ -215,7 +215,7 @@ public abstract class AbstractAcmeClient implements AcmeClient {
|
|||
claims.put("newKey", newKey);
|
||||
|
||||
int rc = conn.sendSignedRequest(registration.getLocation(), claims, session, registration);
|
||||
if (rc != HttpURLConnection.HTTP_ACCEPTED) {
|
||||
if (rc != HttpURLConnection.HTTP_OK) {
|
||||
conn.throwAcmeException();
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
|
|
|
@ -192,7 +192,7 @@ public class AbstractAcmeClientTest {
|
|||
assertThat(uri, is(locationUri));
|
||||
assertThat(session, is(notNullValue()));
|
||||
assertThat(registration.getKeyPair(), is(sameInstance(accountKeyPair)));
|
||||
return HttpURLConnection.HTTP_ACCEPTED;
|
||||
return HttpURLConnection.HTTP_OK;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue