Permalink
Browse files

Attempt to removing annoying xcode files from project

  • Loading branch information...
1 parent d6eaa65 commit 65cd7abad553ac2e3c4f4766bfcb1488bf5a5016 @pokeb committed Nov 8, 2008
View
@@ -262,7 +262,6 @@ - (void)loadRequest
[self setLastActivityTime:[[NSDate new] autorelease]];
// Wait for the request to finish
- NSDate* endDate = [NSDate distantFuture];
while (!complete) {
//See if we need to timeout
@@ -283,8 +282,9 @@ - (void)loadRequest
break;
}
[self updateProgressIndicators];
- CFRunLoopRunInMode(ASIHTTPRequestRunMode,0.5,YES);
- //[[NSRunLoop currentRunLoop] runMode:NSRunLoopCommonModes beforeDate:endDate];
+
+ //This thread should wait for 1/4 second for the stream to do something. We'll stop early if it does.
+ CFRunLoopRunInMode(ASIHTTPRequestRunMode,0.25,YES);
}
[pool release];
@@ -227,7 +227,7 @@ - (void)testCookies
foundCookie = YES;
success = [[cookie decodedValue] isEqualToString:@"This is the value"];
STAssertTrue(success,@"Failed to store the correct value for a cookie");
- success = [[cookie domain] isEqualToString:@".allseeing-i.com"];
+ success = [[cookie domain] isEqualToString:@"allseeing-i.com"];
STAssertTrue(success,@"Failed to store the correct domain for a cookie");
success = [[cookie path] isEqualToString:@"/asi-http-request/tests"];
STAssertTrue(success,@"Failed to store the correct path for a cookie");
@@ -279,7 +279,7 @@ - (void)testCookies
NSDictionary *cookieProperties = [[[NSMutableDictionary alloc] init] autorelease];
[cookieProperties setValue:@"Test Value" forKey:NSHTTPCookieValue];
[cookieProperties setValue:@"ASIHTTPRequestTestCookie" forKey:NSHTTPCookieName];
- [cookieProperties setValue:@".allseeing-i.com" forKey:NSHTTPCookieDomain];
+ [cookieProperties setValue:@"allseeing-i.com" forKey:NSHTTPCookieDomain];
[cookieProperties setValue:[NSDate dateWithTimeIntervalSinceNow:60*60*4] forKey:NSHTTPCookieExpires];
[cookieProperties setValue:@"/asi-http-request/tests" forKey:NSHTTPCookiePath];
cookie = [[[NSHTTPCookie alloc] initWithProperties:cookieProperties] autorelease];
Oops, something went wrong.

0 comments on commit 65cd7ab

Please sign in to comment.