Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' into arcified
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeredpath committed Jun 30, 2011
2 parents d13be27 + 5378a50 commit 012a6ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Classes/LRRestyResponse.m
Expand Up @@ -13,6 +13,8 @@

NSDictionary *extractCookiesFromHeaders(NSDictionary *headers, NSURL *url)
{
if (headers == nil) return [NSDictionary dictionary];

NSMutableDictionary *cookies = [NSMutableDictionary dictionary];
for (NSHTTPCookie *cookie in [NSHTTPCookie cookiesWithResponseHeaderFields:headers forURL:url]) {
[cookies setObject:cookie forKey:cookie.name];
Expand Down
8 changes: 8 additions & 0 deletions LRResty.xcodeproj/project.pbxproj
Expand Up @@ -1459,6 +1459,8 @@
GCC_PREFIX_HEADER = "LRResty/LRResty-Prefix.pch";
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INSTALL_PATH = /usr/local/lib;
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
MACOSX_DEPLOYMENT_TARGET = 10.6;
PRODUCT_NAME = LRResty;
RUN_CLANG_STATIC_ANALYZER = YES;
SDKROOT = iphoneos;
Expand All @@ -1478,6 +1480,8 @@
GCC_PREFIX_HEADER = "LRResty/LRResty-Prefix.pch";
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INSTALL_PATH = /usr/local/lib;
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
MACOSX_DEPLOYMENT_TARGET = 10.6;
PRODUCT_NAME = LRResty;
RUN_CLANG_STATIC_ANALYZER = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -1584,6 +1588,7 @@
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
HEADER_SEARCH_PATHS = Tests/Support;
INFOPLIST_FILE = "Resources/Acceptance Tests-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
OTHER_LDFLAGS = (
"-framework",
Foundation,
Expand Down Expand Up @@ -1617,6 +1622,7 @@
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
HEADER_SEARCH_PATHS = Tests/Support;
INFOPLIST_FILE = "Resources/Acceptance Tests-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
OTHER_LDFLAGS = (
"-framework",
Foundation,
Expand Down Expand Up @@ -1700,6 +1706,7 @@
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
HEADER_SEARCH_PATHS = Tests/Support;
INFOPLIST_FILE = "Resources/Acceptance Tests-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
OTHER_LDFLAGS = (
"-framework",
Foundation,
Expand Down Expand Up @@ -1732,6 +1739,7 @@
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
HEADER_SEARCH_PATHS = Tests/Support;
INFOPLIST_FILE = "Resources/Acceptance Tests-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
OTHER_LDFLAGS = (
"-framework",
Foundation,
Expand Down
4 changes: 2 additions & 2 deletions Tests/Acceptance/StreamingTests.m
Expand Up @@ -32,12 +32,12 @@ - (void)testCanPerformGetRequestAndStreamResponse

- (void)testCancellationUsingTwitterStream;
{
NSMutableArray *chunks = [NSMutableArray array];
__block NSMutableArray *chunks = [NSMutableArray array];

[client setUsername:TwitterUsername password:TwitterPassword];

[client get:@"http://stream.twitter.com/1/statuses/sample.json"
onData:^(NSData *chunk, BOOL *cancel) {
onData:^(NSData *chunk, BOOL *cancel) {
if (chunk) {
[chunks addObject:chunk];
}
Expand Down

0 comments on commit 012a6ea

Please sign in to comment.