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-12-17 16:06:07 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9c964b6f49c56a8e1770bd7d7dc0a5e876ec6b4b
9c964b6f
1 parent
fb915f94
Added a couple more debug messages
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.m
View file @
9c964b6
...
...
@@ -21,7 +21,7 @@
#import "ASIInputStream.h"
// Automatically set on build
NSString
*
ASIHTTPRequestVersion
=
@"v1.2-3
2
2009-12-17"
;
NSString
*
ASIHTTPRequestVersion
=
@"v1.2-3
3
2009-12-17"
;
NSString
*
const
NetworkRequestErrorDomain
=
@"ASIHTTPRequestErrorDomain"
;
...
...
@@ -394,6 +394,9 @@ static BOOL isiPhoneOS2;
-
(
void
)
cancel
{
#if DEBUG_REQUEST_STATUS
NSLog
(
@"Request cancelled: %@"
,
self
);
#endif
[[
self
cancelledLock
]
lock
];
if
([
self
isCancelled
]
||
[
self
complete
])
{
...
...
@@ -913,8 +916,6 @@ static BOOL isiPhoneOS2;
[
self
performThrottling
];
// See if we need to timeout
if
(
lastActivityTime
&&
timeOutSeconds
>
0
&&
[
now
timeIntervalSinceDate
:
lastActivityTime
]
>
timeOutSeconds
)
{
...
...
@@ -1069,7 +1070,6 @@ static BOOL isiPhoneOS2;
[
self
updateDownloadProgress
];
}
}
}
...
...
@@ -1152,9 +1152,6 @@ static BOOL isiPhoneOS2;
}
}
if
(
totalBytesSent
==
0
)
{
return
;
}
...
...
@@ -1372,6 +1369,9 @@ static BOOL isiPhoneOS2;
// If you do this, don't forget to call [super failWithError:] to let the queue / delegate know we're done
-
(
void
)
failWithError
:
(
NSError
*
)
theError
{
#if DEBUG_REQUEST_STATUS || DEBUG_THROTTLING
NSLog
(
@"Request failed: %@"
,
self
);
#endif
[
self
setComplete
:
YES
];
if
([
self
isCancelled
]
||
[
self
error
])
{
...
...
@@ -1531,6 +1531,10 @@ static BOOL isiPhoneOS2;
// This means manually added cookies will not be added to the redirect request - only those stored in the global persistent store
// But, this is probably the safest option - we might be redirecting to a different domain
[
self
setRequestCookies
:[
NSMutableArray
array
]];
#if DEBUG_REQUEST_STATUS
NSLog
(
@"Request will redirect (code: %hi): %@"
,
self
,[
self
responseStatusCode
]);
#endif
}
}
...
...
Please
register
or
login
to post a comment