Joseph Heenan
Committed by Ben Copsey

Set responseStatusCode on cached responses to 200, so the cache is transparent to the client.

(The cache only stores 200 response codes.)

The client can still check if the cache was used or not by checking 'didUseCachedResponse'.
... ... @@ -2832,6 +2832,10 @@ static NSOperationQueue *sharedQueue = nil;
}
}
// only 200 responses are stored in the cache, so let the client know
// this was a successful response
self.responseStatusCode = 200;
[self setDidUseCachedResponse:YES];
ASIHTTPRequest *theRequest = self;
... ...