mirror of
https://github.com/munki/munki.git
synced 2026-05-14 16:28:58 -05:00
Fix headerDictFromList() to strip leading and trailing spaces from header values
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user