From 783d26ee4889eeef64f59821126c4df76e72a125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Sun, 15 Jan 2023 18:31:42 +0000 Subject: [PATCH] fix @context --- app/ldsig.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/ldsig.py b/app/ldsig.py index ab810c3..c67009f 100644 --- a/app/ldsig.py +++ b/app/ldsig.py @@ -23,6 +23,12 @@ 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)