We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb77ad8 commit c8524c3Copy full SHA for c8524c3
1 file changed
src/cryptojwt/key_bundle.py
@@ -356,11 +356,12 @@ def do_remote(self):
356
357
try:
358
LOGGER.debug('KeyBundle fetch keys from: %s', self.source)
359
+ httpc_params = self.httpc_params.copy()
360
if self.last_remote is not None:
- if "headers" not in self.httpc_params:
361
- self.httpc_params["headers"] = {}
362
- self.httpc_params["headers"]["If-Modified-Since"] = self.last_remote
363
- _http_resp = self.httpc('GET', self.source, **self.httpc_params)
+ if "headers" not in httpc_params:
+ httpc_params["headers"] = {}
+ httpc_params["headers"]["If-Modified-Since"] = self.last_remote
364
+ _http_resp = self.httpc('GET', self.source, **httpc_params)
365
except Exception as err:
366
LOGGER.error(err)
367
raise UpdateFailed(
0 commit comments