From 14acaec20db69aaeffe14c97ae80d5ee85d66348 Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Wed, 14 Aug 2024 12:41:54 -0700 Subject: [PATCH] Fix headerDictFromList() to strip leading and trailing spaces from header values --- code/cli/munki/shared/network/fetch.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/cli/munki/shared/network/fetch.swift b/code/cli/munki/shared/network/fetch.swift index 90361ac8..17ff46ea 100644 --- a/code/cli/munki/shared/network/fetch.swift +++ b/code/cli/munki/shared/network/fetch.swift @@ -134,7 +134,7 @@ func headerDictFromList(_ strList: [String]?) -> [String: String] { if item.contains(":") { let parts = item.components(separatedBy: ":") if parts.count == 2 { - headerDict[parts[0]] = parts[1] + headerDict[parts[0]] = parts[1].trimmingCharacters(in: .whitespaces) } } }