File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments