Skip to content

Commit ecbc190

Browse files
reign-gitCisphyx
andauthored
Update snippets/cloudflare-domain-rank-top/cloudflare-domain-rank-top.storm
Co-authored-by: Cisphyx <cisphyx@gmail.com>
1 parent 3f5b27d commit ecbc190

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

snippets/cloudflare-domain-rank-top/cloudflare-domain-rank-top.storm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ $datasets = (["top_200", "top_500", "top_1000", "top_2000", "top_5000", "top_100
2121
// Query Cloudflare Radar for each top dataset.
2222
for $dataset in $datasets {
2323
$url = `https://api.cloudflare.com/client/v4/radar/datasets/ranking_{$dataset}`
24-
$headers = $lib.dict(
25-
"Accept"="application/json",
26-
"Authorization"= `Bearer {$lib.globals.get(cloudflare:apikey)}` //added Bearer
27-
)
24+
$headers = ({
25+
"Accept": "application/json",
26+
"Authorization": `Bearer {$lib.globals.get(cloudflare:apikey)}` //added Bearer
27+
})
2828

2929
$resp = $lib.inet.http.get($url, $headers)
3030

0 commit comments

Comments
 (0)