From 02809b703fa554c401c7db44628fb195ff2f1c3a Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Fri, 24 Mar 2017 16:50:56 +0800 Subject: [PATCH] CPAN: Use metacpan fastapi All docs in metacpan.org currently point to this new API endpoint. The old API endpoint returns wrong data for e.g. TermReadKey (latest 2.37 vs API 2.14), and the new API endpoint doesn't have this issue. --- nvchecker/source/cpan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvchecker/source/cpan.py b/nvchecker/source/cpan.py index 549aeb4..b32a44b 100644 --- a/nvchecker/source/cpan.py +++ b/nvchecker/source/cpan.py @@ -1,7 +1,7 @@ from .simple_json import simple_json # Using metacpan -CPAN_URL = 'https://api.metacpan.org/release/%s' +CPAN_URL = 'https://fastapi.metacpan.org/release/%s' def _version_from_json(data): return str(data['version'])