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.
|
* Returns a human-readable description of the problem.
|
||||||
*/
|
*/
|
||||||
public String getDetail() {
|
public String getDetail() {
|
||||||
String value = problemJson.get("value").asString();
|
|
||||||
if (value != null) {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
return problemJson.get("detail").asString();
|
return problemJson.get("detail").asString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"sub-problems": [
|
"sub-problems": [
|
||||||
{
|
{
|
||||||
"type": "urn:ietf:params:acme:error:malformed",
|
"type": "urn:ietf:params:acme:error:malformed",
|
||||||
"value": "Invalid underscore in DNS name \"_example.com\"",
|
"detail": "Invalid underscore in DNS name \"_example.com\"",
|
||||||
"identifier": {
|
"identifier": {
|
||||||
"type": "dns",
|
"type": "dns",
|
||||||
"value": "_example.com"
|
"value": "_example.com"
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "urn:ietf:params:acme:error:rejectedIdentifier",
|
"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": {
|
"identifier": {
|
||||||
"type": "dns",
|
"type": "dns",
|
||||||
"value": "example.net"
|
"value": "example.net"
|
||||||
|
|
Loading…
Reference in New Issue