We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb5fb89 commit 7395aecCopy full SHA for 7395aec
Sources/SoundCloudAPI/SCAudioStream.m
@@ -447,10 +447,14 @@ - (void)oauthConnection:(NXOAuth2Connection *)fetcher didFailWithError:(NSError
447
}
448
449
450
-- (void)oauthConnection:(NXOAuth2Connection *)connection didReceiveRedirectToURL:(NSURL *)aRedirectURL;
+- (void)oauthConnection:(NXOAuth2Connection *)fetcher didReceiveRedirectToURL:(NSURL *)aRedirectURL;
451
{
452
- [redirectURL release];
453
- redirectURL = [aRedirectURL retain];
+ [redirectURL release]; redirectURL = nil;
+
454
+ id context = [[fetcher.context retain] autorelease];
455
+ if ([context isEqualToString:SCAudioStream_HTTPStreamContext]) {
456
+ redirectURL = [aRedirectURL retain];
457
+ }
458
459
460
0 commit comments