mirror of https://github.com/shred/acme4j
Remove unnecessary type from challenge response
parent
2f50f8dac5
commit
a7ea703e93
|
@ -160,7 +160,7 @@ public class Challenge extends AcmeResource {
|
||||||
* {@link JSONBuilder} to copy the response to
|
* {@link JSONBuilder} to copy the response to
|
||||||
*/
|
*/
|
||||||
protected void respond(JSONBuilder cb) {
|
protected void respond(JSONBuilder cb) {
|
||||||
cb.put(KEY_TYPE, getType());
|
// Do nothing here...
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -140,7 +140,7 @@ public class ChallengeTest {
|
||||||
JSONBuilder cb = new JSONBuilder();
|
JSONBuilder cb = new JSONBuilder();
|
||||||
challenge.respond(cb);
|
challenge.respond(cb);
|
||||||
|
|
||||||
assertThat(cb.toString(), sameJSONAs("{\"type\"=\"generic-01\"}"));
|
assertThat(cb.toString(), sameJSONAs("{}"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
{
|
{
|
||||||
"type": "http-01",
|
|
||||||
"keyAuthorization": "IlirfxKKXAsHtmzK29Pj8A.HnWjTDnyqlCrm6tZ-6wX-TrEXgRdeNu9G71gqxSO6o0"
|
"keyAuthorization": "IlirfxKKXAsHtmzK29Pj8A.HnWjTDnyqlCrm6tZ-6wX-TrEXgRdeNu9G71gqxSO6o0"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue