Skip to content

Commit faa08a8

Browse files
Reduce load on Crates.io (#478)
1 parent 21e3907 commit faa08a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/categories/macros.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
{% if item.source %}
88
{% if item.source == 'crates' %}
9-
{% set data = load_data(url = "https://crates.io/api/v1/crates/" ~ item.name, format="json") %}
9+
{% set data = load_data(url = "https://crates.io/api/v1/crates/" ~ item.name ~ "?include=", format="json", headers=["User-Agent=arewegameyet ([email protected])"]) %}
1010
{# human readable name #}
1111
{% set name = data.crate.name %}
1212
{# Github/Gitlab/Etc. repository #}

0 commit comments

Comments
 (0)