Skip to content

Commit

Permalink
safe deepcopy Probe.REQUEST_HEADERS before populating/using - fixes #301
Browse files Browse the repository at this point in the history
 (#302)
  • Loading branch information
justb4 authored Oct 27, 2019
1 parent 8f3add3 commit 81adc19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GeoHealthCheck/probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ def after_request(self):
def get_request_headers(self):
if not self._resource:
return dict()
return self._resource.add_auth_header(self.REQUEST_HEADERS)
headers = Plugin.copy(self.REQUEST_HEADERS)
return self._resource.add_auth_header(headers)

def perform_request(self):
""" Perform actual request to service"""
Expand Down

0 comments on commit 81adc19

Please sign in to comment.