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

View File

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