Skip to content

Commit

Permalink
Update reportcommon.py (munkireport#1516)
Browse files Browse the repository at this point in the history
Fix config bug discovered in issue munkireport#1515
  • Loading branch information
tuxudo authored Jun 27, 2023
1 parent b66155d commit 12a41b3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def curl(url, values):
if pref("FollowHTTPRedirects"):
options["follow_redirects"] = int(pref("FollowHTTPRedirects"))

if pref("UseAdditionalHttpHeaders"):
if pref("UseMunkiAdditionalHttpHeaders"):
custom_headers = prefs.pref(constants.ADDITIONAL_HTTP_HEADERS_KEY)
if custom_headers:
options["additional_headers"] = dict()
Expand All @@ -118,8 +118,8 @@ def curl(url, values):
else:
raise CurlError(
-1,
"UseAdditionalHttpHeaders defined, "
"but not found in MunkiReport preferences",
"UseMunkiAdditionalHttpHeaders defined, "
"but not found in Munki preferences",
)

# Build Purl with initial settings
Expand Down

0 comments on commit 12a41b3

Please sign in to comment.