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
2009-08-13 11:00:33 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3f8c54be58de65a8d8ba03b1657c747197a9bc6b
3f8c54be
1 parent
e7492d38
Fix build on iPhone 2.2.x
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.m
View file @
3f8c54b
...
...
@@ -2283,12 +2283,16 @@ static NSLock *sessionCookiesLock = nil;
if
(
err
)
{
return
nil
;
}
CFErrorRef
err2
=
NULL
;
// Obtain the list of proxies by running the autoconfiguration script
#if !TARGET_OS_IPHONE || __IPHONE_OS_VERSION_MIN_REQUIRED > __IPHONE_2_2
CFErrorRef
err2
=
NULL
;
NSArray
*
proxies
=
[(
NSArray
*
)
CFNetworkCopyProxiesForAutoConfigurationScript
((
CFStringRef
)
script
,(
CFURLRef
)
theURL
,
&
err2
)
autorelease
];
if
(
err2
)
{
return
nil
;
}
#else
NSArray
*
proxies
=
[(
NSArray
*
)
CFNetworkCopyProxiesForAutoConfigurationScript
((
CFStringRef
)
script
,(
CFURLRef
)
theURL
)
autorelease
];
#endif
return
proxies
;
}
...
...
Please
register
or
login
to post a comment