From 3f129855d1b3d276ca9f9e036d4711e832466984 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 14 Jan 2023 10:32:36 +0100 Subject: [PATCH] LD sig hack --- app/ldsig.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/ldsig.py b/app/ldsig.py index 3668516..f01074d 100644 --- a/app/ldsig.py +++ b/app/ldsig.py @@ -23,6 +23,13 @@ requests_loader = pyld.documentloader.requests.requests_document_loader() def _loader(url, options={}): # See https://github.com/digitalbazaar/pyld/issues/133 options["headers"]["Accept"] = "application/ld+json" + + # XXX: temp fix/hack is it seems to be down for now + if url == "https://w3id.org/identity/v1": + url = ( + "https://raw.githubusercontent.com/web-payments/web-payments.org" + "/master/contexts/identity-v1.jsonld" + ) return requests_loader(url, options)