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-23 12:59:27 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f2beb2307ef40eb0f2b0f67ec3aaf404afa54591
f2beb230
1 parent
bb60fa70
Fix mac build
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.m
View file @
f2beb23
...
...
@@ -14,11 +14,12 @@
#import <zlib.h>
#if TARGET_OS_IPHONE
#import "Reachability.h"
#import "ASIAuthenticationDialog.h"
#else
#import <SystemConfiguration/SystemConfiguration.h>
#endif
#import "ASIInputStream.h"
#import "ASIAuthenticationDialog.h"
// We use our own custom run loop mode as CoreAnimation seems to want to hijack our threads otherwise
static
CFStringRef
ASIHTTPRequestRunMode
=
CFSTR
(
"ASIHTTPRequest"
);
...
...
@@ -78,8 +79,6 @@ BOOL shouldThrottleBandwithForWWANOnly = NO;
static
NSLock
*
sessionCookiesLock
=
nil
;
UIActionSheet
*
loginDialog
=
nil
;
// Private stuff
@interface
ASIHTTPRequest
()
...
...
@@ -1421,6 +1420,8 @@ UIActionSheet *loginDialog = nil;
-
(
BOOL
)
showProxyAuthenticationDialog
{
// Mac authentication dialog coming soon!
#if TARGET_OS_IPHONE
if
([
self
shouldPresentProxyAuthenticationDialog
])
{
[
ASIAuthenticationDialog
performSelectorOnMainThread
:
@selector
(
presentProxyAuthenticationDialogForRequest
:)
withObject
:
self
waitUntilDone
:
[
NSThread
isMainThread
]];
[[
self
authenticationLock
]
lockWhenCondition
:
2
];
...
...
@@ -1428,6 +1429,9 @@ UIActionSheet *loginDialog = nil;
return
YES
;
}
return
NO
;
#else
return
NO
;
#endif
}
...
...
@@ -1545,6 +1549,8 @@ UIActionSheet *loginDialog = nil;
-
(
BOOL
)
showAuthenticationDialog
{
// Mac authentication dialog coming soon!
#if TARGET_OS_IPHONE
if
([
self
shouldPresentAuthenticationDialog
])
{
[
ASIAuthenticationDialog
performSelectorOnMainThread
:
@selector
(
presentAuthenticationDialogForRequest
:)
withObject
:
self
waitUntilDone
:
[
NSThread
isMainThread
]];
[[
self
authenticationLock
]
lockWhenCondition
:
2
];
...
...
@@ -1552,6 +1558,9 @@ UIActionSheet *loginDialog = nil;
return
YES
;
}
return
NO
;
#else
return
NO
;
#endif
}
-
(
BOOL
)
askDelegateForCredentials
...
...
Please
register
or
login
to post a comment