Skip to content

Commit

Permalink
use https for metadata url
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rc1e committed Jan 17, 2025
1 parent 2576807 commit 1a202f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def production_metadata(context):

import requests

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


Expand Down
6 changes: 3 additions & 3 deletions tests/test_checks_googlefonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ def test_check_metadata_includes_production_subsets(check, requests_mock):
"""Check METADATA.pb has production subsets."""

requests_mock.get(
"http://fonts.google.com/metadata/fonts",
"https://fonts.google.com/metadata/fonts",
json={
"familyMetadataList": [
{
Expand Down Expand Up @@ -2686,7 +2686,7 @@ def test_check_repo_zip_files(check, tmp_path):
@check_id("googlefonts/vertical_metrics")
def test_check_vertical_metrics(check, requests_mock):
requests_mock.get(
"http://fonts.google.com/metadata/fonts",
"https://fonts.google.com/metadata/fonts",
json={
"familyMetadataList": [
{"family": "Akshar"},
Expand Down Expand Up @@ -2959,7 +2959,7 @@ def new_context():
@check_id("googlefonts/cjk_vertical_metrics")
def test_check_cjk_vertical_metrics(check, requests_mock):
requests_mock.get(
"http://fonts.google.com/metadata/fonts",
"https://fonts.google.com/metadata/fonts",
json={
"familyMetadataList": [],
},
Expand Down

0 comments on commit 1a202f6

Please sign in to comment.