@@ -559,15 +559,16 @@ _socket = [socket retain]; _lastURL = [URL copy]; _lastResponse = [response retain]; } + /* FIXME: Case-insensitive check of redirect's scheme */ if (redirects > 0 && (status == 301 || status == 302 || status == 303 || status == 307) && (redirect = [serverHeaders objectForKey: @"Location"]) != nil && (_insecureRedirectsAllowed || [scheme isEqual: @"http"] || - ![redirect hasPrefix: @"http://"])) { + [redirect hasPrefix: @"https://"])) { OFURL *newURL; bool follow; newURL = [OFURL URLWithString: redirect relativeToURL: URL];