Fix redirect handling for 'https' value

This commit is contained in:
Greg Neagle
2024-08-14 11:54:38 -07:00
parent aec8cd7c36
commit 8c44ea0ed3
+3 -1
View File
@@ -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