Hi all,

The attached patch allows me to use NSURLConnection with an URL needing
authentication.
Without that change the connection never receives data and ends right after
didReceiveAuthenticationChallenge: is received and treated by the delegate.

This patch may not be the right fix, I didn't looked closely.

Hope this helps,
Philippe
Index: Source/NSURLProtocol.m
===================================================================
--- Source/NSURLProtocol.m	(révision 28000)
+++ Source/NSURLProtocol.m	(copie de travail)
@@ -1085,8 +1085,10 @@
 		      [request setValue: auth
 			forHTTPHeaderField: @"Authorization"];
 		      [self stopLoading];
+		      ASSIGN(this->request, request);
 		      DESTROY(this->cachedResponse);
 		      [self startLoading];
+		      return;
 		    }
 		}
 	    }
_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to