diff --git a/aries_cloudagent/vc/ld_proofs/document_downloader.py b/aries_cloudagent/vc/ld_proofs/document_downloader.py index a465522eff..aac93839e9 100644 --- a/aries_cloudagent/vc/ld_proofs/document_downloader.py +++ b/aries_cloudagent/vc/ld_proofs/document_downloader.py @@ -9,6 +9,7 @@ from typing import Dict, Optional import urllib.parse as urllib_parse from importlib import resources +from ...version import __version__ import requests from pyld import jsonld @@ -122,6 +123,7 @@ def download(self, url: str, options: Optional[Dict], **kwargs): headers = options.get("headers") if headers is None: headers = {"Accept": "application/ld+json, application/json"} + headers["User-Agent"] = f"AriesCloudAgent/{__version__}" response = requests.get(url, headers=headers, **kwargs) content_type = response.headers.get("content-type")