Skip to content

Commit c8524c3

Browse files
committed
do not update real httpc params
1 parent fb77ad8 commit c8524c3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/cryptojwt/key_bundle.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,12 @@ def do_remote(self):
356356

357357
try:
358358
LOGGER.debug('KeyBundle fetch keys from: %s', self.source)
359+
httpc_params = self.httpc_params.copy()
359360
if self.last_remote is not None:
360-
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)
361+
if "headers" not in httpc_params:
362+
httpc_params["headers"] = {}
363+
httpc_params["headers"]["If-Modified-Since"] = self.last_remote
364+
_http_resp = self.httpc('GET', self.source, **httpc_params)
364365
except Exception as err:
365366
LOGGER.error(err)
366367
raise UpdateFailed(

0 commit comments

Comments
 (0)