Skip to content

Commit 1a202f6

Browse files
committed
use https for metadata url
1 parent 2576807 commit 1a202f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Lib/fontbakery/checks/vendorspecific/googlefonts/conditions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def production_metadata(context):
483483

484484
import requests
485485

486-
meta_url = "http://fonts.google.com/metadata/fonts"
486+
meta_url = "https://fonts.google.com/metadata/fonts"
487487
return requests.get(meta_url, timeout=context.config.get("timeout")).json()
488488

489489

tests/test_checks_googlefonts.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ def test_check_metadata_includes_production_subsets(check, requests_mock):
12041204
"""Check METADATA.pb has production subsets."""
12051205

12061206
requests_mock.get(
1207-
"http://fonts.google.com/metadata/fonts",
1207+
"https://fonts.google.com/metadata/fonts",
12081208
json={
12091209
"familyMetadataList": [
12101210
{
@@ -2686,7 +2686,7 @@ def test_check_repo_zip_files(check, tmp_path):
26862686
@check_id("googlefonts/vertical_metrics")
26872687
def test_check_vertical_metrics(check, requests_mock):
26882688
requests_mock.get(
2689-
"http://fonts.google.com/metadata/fonts",
2689+
"https://fonts.google.com/metadata/fonts",
26902690
json={
26912691
"familyMetadataList": [
26922692
{"family": "Akshar"},
@@ -2959,7 +2959,7 @@ def new_context():
29592959
@check_id("googlefonts/cjk_vertical_metrics")
29602960
def test_check_cjk_vertical_metrics(check, requests_mock):
29612961
requests_mock.get(
2962-
"http://fonts.google.com/metadata/fonts",
2962+
"https://fonts.google.com/metadata/fonts",
29632963
json={
29642964
"familyMetadataList": [],
29652965
},

0 commit comments

Comments
 (0)