mirror of https://github.com/shred/acme4j
Fix detail key in sub-problem
parent
d6fb218a27
commit
e386994fe5
|
@ -65,10 +65,6 @@ public class Problem implements Serializable {
|
|||
* Returns a human-readable description of the problem.
|
||||
*/
|
||||
public String getDetail() {
|
||||
String value = problemJson.get("value").asString();
|
||||
if (value != null) {
|
||||
return value;
|
||||
}
|
||||
return problemJson.get("detail").asString();
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"sub-problems": [
|
||||
{
|
||||
"type": "urn:ietf:params:acme:error:malformed",
|
||||
"value": "Invalid underscore in DNS name \"_example.com\"",
|
||||
"detail": "Invalid underscore in DNS name \"_example.com\"",
|
||||
"identifier": {
|
||||
"type": "dns",
|
||||
"value": "_example.com"
|
||||
|
@ -13,7 +13,7 @@
|
|||
},
|
||||
{
|
||||
"type": "urn:ietf:params:acme:error:rejectedIdentifier",
|
||||
"value": "This CA will not issue for \"example.net\"",
|
||||
"detail": "This CA will not issue for \"example.net\"",
|
||||
"identifier": {
|
||||
"type": "dns",
|
||||
"value": "example.net"
|
||||
|
|
Loading…
Reference in New Issue