Skip to content

Commit

Permalink
fix url redirect error
Browse files Browse the repository at this point in the history
  • Loading branch information
coderyi committed Nov 17, 2015
1 parent af7d228 commit 65f997f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions NetworkEye/NetworkEye/NEHTTPEye.m
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ - (void)connection:(NSURLConnection *)connection
}

#pragma mark - NSURLConnectionDataDelegate
- (NSURLRequest *)connection:(NSURLConnection *)connection willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response
{
if (response != nil)
{
[[self client] URLProtocol:self wasRedirectedToRequest:request redirectResponse:response];
}
return request;
}

- (void)connection:(NSURLConnection *)connection
didReceiveResponse:(NSURLResponse *)response
Expand Down

0 comments on commit 65f997f

Please sign in to comment.