diff --git a/cf_xarray/utils.py b/cf_xarray/utils.py index e55072a6..bdc2605e 100644 --- a/cf_xarray/utils.py +++ b/cf_xarray/utils.py @@ -108,10 +108,16 @@ def parse_cf_standard_name_table(source=None): if not source: import pooch + downloader = pooch.HTTPDownloader( + # https://github.com/readthedocs/readthedocs.org/issues/11763 + headers={"User-Agent": "cf-xarray"} + ) + source = pooch.retrieve( "https://raw.githubusercontent.com/cf-convention/cf-convention.github.io/" "master/Data/cf-standard-names/current/src/cf-standard-name-table.xml", known_hash=None, + downloader=downloader, ) root = ElementTree.parse(source).getroot()