ObjFW  Diff

Differences From Artifact [ab4c72054a]:

To Artifact [7e8bacfd9a]:


557
558
559
560
561
562
563

564
565
566
567
568

569
570
571
572
573
574
575
557
558
559
560
561
562
563
564
565
566
567
568

569
570
571
572
573
574
575
576







+




-
+







		[response setKeepAlive: true];

		_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];

		if ([_delegate respondsToSelector: