Expect Account Key Roll-Over to return HTTP_OK on success

pull/17/merge
Richard Körber 2016-03-19 13:05:57 +01:00
parent 158c3c46d1
commit 9ce3718861
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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