From 79b9e93101b93b7af109131e573756c1cd3d6ec9 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Fri, 4 Sep 2026 01:12:28 -0400 Subject: [PATCH] minor copy/paste fixes --- pycsw/core/util.py | 2 +- pycsw/ogc/csw/csw3.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pycsw/core/util.py b/pycsw/core/util.py index 78f8685fb..0e605c3ee 100644 --- a/pycsw/core/util.py +++ b/pycsw/core/util.py @@ -298,7 +298,7 @@ def http_request(method, url, request=None, timeout=30, raise ValueError('URL not allowed') headers = { - 'User-Agent': 'pycsw (https://pycsw.org/)' + 'User-Agent': 'pycsw (https://pycsw.org)' } if method == 'POST': diff --git a/pycsw/ogc/csw/csw3.py b/pycsw/ogc/csw/csw3.py index 7c1edb62c..d095d7de0 100644 --- a/pycsw/ogc/csw/csw3.py +++ b/pycsw/ogc/csw/csw3.py @@ -1346,7 +1346,7 @@ def harvest(self): # fetch content-based resource LOGGER.info('Fetching resource %s', self.parent.kvp['source']) try: - content = util.http_request('GET', self.parent.kvp['source'], self.parent.config['server'].get('allow_internal_ requests', False)) + content = util.http_request('GET', self.parent.kvp['source'], self.parent.config['server'].get('allow_internal_requests', False)) except Exception as err: errortext = 'Error fetching resource %s.\nError: %s.' % \