1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Support relative HTTP redirects

This commit is contained in:
Anton Romanov
2015-05-07 21:52:25 -07:00
parent 827e816aab
commit 55077edd6d

View File

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