Skip to content

Instantly share code, notes, and snippets.

@nickdowell
Created February 22, 2012 16:14
Show Gist options
  • Save nickdowell/1885821 to your computer and use it in GitHub Desktop.
Save nickdowell/1885821 to your computer and use it in GitHub Desktop.
- (NSURLRequest *)connection:(NSURLConnection *)connection willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response
{
if (response != nil) {
[[self client] URLProtocol:self wasRedirectedToRequest:request redirectResponse:response];
}
return request;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment