1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

Merge pull request #297 from theli-ua/relative

Support relative HTTP redirects
This commit is contained in:
Christian Muehlhaeuser
2015-05-08 17:20:55 +02:00

View File

@@ -90,7 +90,14 @@ NetworkReply::metaDataChanged()
else else
{ {
disconnectReplySignals(); disconnectReplySignals();
if( redir.toUrl().isRelative() )
{
load( m_url.resolved( redir.toUrl() ) );
}
else
{
load( redir.toUrl() ); load( redir.toUrl() );
}
emit redirected(); emit redirected();
} }
} }