From cec6d7e2a0b1b4b4bb345f4ee0a05860b8064dd6 Mon Sep 17 00:00:00 2001 From: Chriztoffer Date: Fri, 7 Feb 2020 19:49:03 +0000 Subject: [PATCH] Update metadata headers --- rfc8416.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfc8416.php b/rfc8416.php index 51bd9d2..0100474 100755 --- a/rfc8416.php +++ b/rfc8416.php @@ -239,7 +239,7 @@ $roas["metadata"]["human"]["url"] .= $roas["metadata"]["human"]["commit"]; * Numbers must be unquoted integers, and timeformat must * be epoch format. TImezone is set to Etc/UTC. */ -$roas["metadata"]["counts"] = (int)count($roas["roas"]); +$roas["metadata"]["counts"] = (int)count($roas["locallyAddedAssertions"]["prefixAssertions"]); $roas["metadata"]["generated"] = (int)(date_format(new \DateTime("now",new \DateTimeZone("UTC")),"U")); $roas["metadata"]["valid"] = (int)(date_format(date_modify(new \DateTime("now",new \DateTimeZone("UTC")),"+3day"),"U")); //$roas["metadata"]["signature"] = "";