mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Properly encode post data as UTF8 in nativeasyncrequest
This commit is contained in:
@@ -921,7 +921,7 @@ JSResolverHelper::nativeAsyncRequest( const int requestId, const QString& url,
|
|||||||
QByteArray data;
|
QByteArray data;
|
||||||
if ( options.contains( "data" ) )
|
if ( options.contains( "data" ) )
|
||||||
{
|
{
|
||||||
data = options["data"].toString().toLatin1();
|
data = options["data"].toString().toUtf8();
|
||||||
}
|
}
|
||||||
reply = new NetworkReply( Tomahawk::Utils::nam()->post( req, data ) );
|
reply = new NetworkReply( Tomahawk::Utils::nam()->post( req, data ) );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user