mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +00:00
Fix error in last mod
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24755 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4a89c7967e
commit
b7ac74a927
1 changed files with 35 additions and 21 deletions
|
@ -460,6 +460,12 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
||||||
password: [u password]
|
password: [u password]
|
||||||
persistence: NSURLCredentialPersistenceForSession];
|
persistence: NSURLCredentialPersistenceForSession];
|
||||||
|
|
||||||
|
if (cred == nil)
|
||||||
|
{
|
||||||
|
authentication = nil;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
/* Create authentication from credential ... returns nil if
|
/* Create authentication from credential ... returns nil if
|
||||||
* we have no credential.
|
* we have no credential.
|
||||||
*/
|
*/
|
||||||
|
@ -467,6 +473,7 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
||||||
authenticationWithCredential: cred
|
authenticationWithCredential: cred
|
||||||
inProtectionSpace: space];
|
inProtectionSpace: space];
|
||||||
RELEASE(cred);
|
RELEASE(cred);
|
||||||
|
}
|
||||||
|
|
||||||
method = [request objectForKey: GSHTTPPropertyMethodKey];
|
method = [request objectForKey: GSHTTPPropertyMethodKey];
|
||||||
if (method == nil)
|
if (method == nil)
|
||||||
|
@ -644,7 +651,11 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
||||||
ac = [ah value];
|
ac = [ah value];
|
||||||
space = [GSHTTPAuthentication
|
space = [GSHTTPAuthentication
|
||||||
protectionSpaceForAuthentication: ac requestURL: url];
|
protectionSpaceForAuthentication: ac requestURL: url];
|
||||||
if (space != nil)
|
if (space == nil)
|
||||||
|
{
|
||||||
|
authentication = nil;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
NSURLCredential *cred;
|
NSURLCredential *cred;
|
||||||
|
|
||||||
|
@ -658,6 +669,12 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
||||||
password: [url password]
|
password: [url password]
|
||||||
persistence: NSURLCredentialPersistenceForSession];
|
persistence: NSURLCredentialPersistenceForSession];
|
||||||
|
|
||||||
|
if (cred == nil)
|
||||||
|
{
|
||||||
|
authentication = nil;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
/*
|
/*
|
||||||
* Get the digest object and ask it for a header
|
* Get the digest object and ask it for a header
|
||||||
* to use for authorisation.
|
* to use for authorisation.
|
||||||
|
@ -668,9 +685,6 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
||||||
inProtectionSpace: space];
|
inProtectionSpace: space];
|
||||||
RELEASE(cred);
|
RELEASE(cred);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
authentication = nil;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
method = [request objectForKey: GSHTTPPropertyMethodKey];
|
method = [request objectForKey: GSHTTPPropertyMethodKey];
|
||||||
|
|
Loading…
Reference in a new issue