فهرست منبع

Fix JSON property name for ACME policy

Herman Slatman 4 سال پیش
والد
کامیت
a9f033ece5
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      acme/account.go
  2. 1 1
      acme/api/order.go

+ 2 - 2
acme/account.go

@@ -53,8 +53,8 @@ type PolicyNames struct {
 
 // X509Policy contains ACME account level X.509 policy
 type X509Policy struct {
-	Allowed PolicyNames `json:"allowed"`
-	Denied  PolicyNames `json:"denied"`
+	Allowed PolicyNames `json:"allow"`
+	Denied  PolicyNames `json:"deny"`
 }
 
 // Policy is an ACME Account level policy

+ 1 - 1
acme/api/order.go

@@ -119,7 +119,7 @@ func (h *Handler) NewOrder(w http.ResponseWriter, r *http.Request) {
 	}
 
 	for _, identifier := range nor.Identifiers {
-		// evalue the ACME account level policy
+		// evaluate the ACME account level policy
 		if err = isIdentifierAllowed(acmePolicy, identifier); err != nil {
 			render.Error(w, acme.WrapError(acme.ErrorRejectedIdentifierType, err, "not authorized"))
 			return