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-05-28 14:37:38 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f5b701ac13530331bc767dac981969d2b2a7e18a
f5b701ac
1 parent
f7c0f5e6
Tweak tianzhou's change for clarity
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.m
View file @
f5b701a
...
...
@@ -24,7 +24,7 @@
#import "ASIDataCompressor.h"
// Automatically set on build
NSString
*
ASIHTTPRequestVersion
=
@"v1.8-9
1
2011-05-28"
;
NSString
*
ASIHTTPRequestVersion
=
@"v1.8-9
4
2011-05-28"
;
static
NSString
*
defaultUserAgent
=
nil
;
...
...
@@ -4485,12 +4485,12 @@ static NSOperationQueue *sharedQueue = nil;
#if TARGET_OS_IPHONE
[
bandwidthThrottlingLock
lock
];
BOOL
throttle
=
isBandwidthThrottled
||
(
!
shouldThrottleBandwithForWWANOnly
&&
!!
maxBandwidthPerSecond
);
BOOL
throttle
=
isBandwidthThrottled
||
(
!
shouldThrottleBandwithForWWANOnly
&&
(
maxBandwidthPerSecond
>
0
)
);
[
bandwidthThrottlingLock
unlock
];
return
throttle
;
#else
[
bandwidthThrottlingLock
lock
];
BOOL
throttle
=
!!
maxBandwidthPerSecond
;
BOOL
throttle
=
(
maxBandwidthPerSecond
>
0
)
;
[
bandwidthThrottlingLock
unlock
];
return
throttle
;
#endif
...
...
Please
register
or
login
to post a comment