mirror of
https://github.com/munki/munki.git
synced 2026-05-20 21:28:36 -05:00
Fix redirect handling for 'https' value
This commit is contained in:
@@ -391,7 +391,9 @@ class Gurl: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionData
|
||||
// allow redirect
|
||||
completionHandler(request)
|
||||
return
|
||||
} else if options.followRedirects == "all", newURL.scheme == "https" {
|
||||
} else if newURL.scheme == "https",
|
||||
(options.followRedirects == "all" || options.followRedirects == "https")
|
||||
{
|
||||
// allow redirects to https URLs
|
||||
completionHandler(request)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user