Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2011-02-06 13:57:32 +0000
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
cbae172d7fe7c06c33b1bbdd4585e0d2d57c6b0a
cbae172d
2 parents
62e9299a
1d26d620
Merge branch 'master' of
https://github.com/Moodstocks/asi-http-request
into Moodstocks-master
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.m
View file @
cbae172
...
...
@@ -953,8 +953,8 @@ static NSOperationQueue *sharedQueue = nil;
// Are any credentials set on this request that might be used for basic authentication?
if
([
self
username
]
&&
[
self
password
]
&&
!
[
self
domain
])
{
// If we have stored credentials, is this server asking for basic authentication?
If we don't have credentials, we'll assume basic
if
(
!
credentials
||
(
CFStringRef
)[
credentials
objectForKey
:
@"AuthenticationScheme"
]
==
kCFHTTPAuthenticationSchemeBasic
)
{
// If we have stored credentials, is this server asking for basic authentication?
if
((
CFStringRef
)[
credentials
objectForKey
:
@"AuthenticationScheme"
]
==
kCFHTTPAuthenticationSchemeBasic
)
{
[
self
addBasicAuthenticationHeaderWithUsername
:[
self
username
]
andPassword
:[
self
password
]];
}
}
...
...
Please
register
or
login
to post a comment