Fix detail key in sub-problem

pull/55/head
Richard Körber 2017-12-01 00:09:15 +01:00
parent d6fb218a27
commit e386994fe5
2 changed files with 2 additions and 6 deletions

View File

@ -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();
}

View File

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