mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Merge pull request #297 from theli-ua/relative
Support relative HTTP redirects
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user