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
2010-06-01 14:25:55 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5447823409d05a5591fbe823e81779fd5ebe9eab
54478234
1 parent
813811a6
Fix non-https connections failing when validatesSecureCertificate is NO
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.m
View file @
5447823
...
...
@@ -23,7 +23,7 @@
// Automatically set on build
NSString
*
ASIHTTPRequestVersion
=
@"v1.6.2-1
2 2010-05-26
"
;
NSString
*
ASIHTTPRequestVersion
=
@"v1.6.2-1
3 2010-06-01
"
;
NSString
*
const
NetworkRequestErrorDomain
=
@"ASIHTTPRequestErrorDomain"
;
...
...
@@ -843,7 +843,7 @@ static BOOL isiPhoneOS2;
}
// Tell CFNetwork not to validate SSL certificates
if
(
!
validatesSecureCertificate
)
{
if
(
!
[
self
validatesSecureCertificate
]
&&
[[[[
self
url
]
scheme
]
lowercaseString
]
isEqualToString
:
@"https"
]
)
{
CFReadStreamSetProperty
((
CFReadStreamRef
)[
self
readStream
],
kCFStreamPropertySSLSettings
,
[
NSMutableDictionary
dictionaryWithObject
:(
NSString
*
)
kCFBooleanFalse
forKey
:(
NSString
*
)
kCFStreamSSLValidatesCertificateChain
]);
}
...
...
@@ -930,7 +930,7 @@ static BOOL isiPhoneOS2;
NSInputStream
*
oldStream
=
nil
;
// Use a persistent connection if possible
if
(
shouldAttemptPersistentConnection
)
{
if
(
[
self
shouldAttemptPersistentConnection
]
)
{
// If we are redirecting, we will re-use the current connection only if we are connecting to the same server
...
...
Please
register
or
login
to post a comment