Skip to content

Instantly share code, notes, and snippets.

@nickdowell
Created February 22, 2012 16:14
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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