Ben Copsey

Fix 304 test

@@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
23 23
24 24
25 // Automatically set on build 25 // Automatically set on build
26 -NSString *ASIHTTPRequestVersion = @"v1.7-15 2010-07-17"; 26 +NSString *ASIHTTPRequestVersion = @"v1.7-22 2010-07-17";
27 27
28 NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; 28 NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain";
29 29
@@ -231,7 +231,7 @@ @@ -231,7 +231,7 @@
231 request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://asi/ASIHTTPRequest/tests/the_great_american_novel_(abridged).txt"]]; 231 request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://asi/ASIHTTPRequest/tests/the_great_american_novel_(abridged).txt"]];
232 [request setDownloadCache:[ASIDownloadCache sharedCache]]; 232 [request setDownloadCache:[ASIDownloadCache sharedCache]];
233 [request startSynchronous]; 233 [request startSynchronous];
234 - BOOL success = ([request responseStatusCode] == 304); 234 + BOOL success = ([request responseStatusCode] == 200);
235 GHAssertTrue(success,@"Failed to perform a conditional get"); 235 GHAssertTrue(success,@"Failed to perform a conditional get");
236 236
237 success = [request didUseCachedResponse]; 237 success = [request didUseCachedResponse];