Remove unnecessary type from challenge response

pull/55/head
Richard Körber 2017-12-28 00:07:58 +01:00
parent 2f50f8dac5
commit a7ea703e93
No known key found for this signature in database
GPG Key ID: AAB9FD19C78AA3E0
3 changed files with 2 additions and 3 deletions

View File

@ -160,7 +160,7 @@ public class Challenge extends AcmeResource {
* {@link JSONBuilder} to copy the response to
*/
protected void respond(JSONBuilder cb) {
cb.put(KEY_TYPE, getType());
// Do nothing here...
}
/**

View File

@ -140,7 +140,7 @@ public class ChallengeTest {
JSONBuilder cb = new JSONBuilder();
challenge.respond(cb);
assertThat(cb.toString(), sameJSONAs("{\"type\"=\"generic-01\"}"));
assertThat(cb.toString(), sameJSONAs("{}"));
}
/**

View File

@ -1,4 +1,3 @@
{
"type": "http-01",
"keyAuthorization": "IlirfxKKXAsHtmzK29Pj8A.HnWjTDnyqlCrm6tZ-6wX-TrEXgRdeNu9G71gqxSO6o0"
}