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

Properly encode post data as UTF8 in nativeasyncrequest

This commit is contained in:
Anton Romanov
2015-09-03 15:33:23 -07:00
parent b3f63094b9
commit 5776ff0828

View File

@@ -921,7 +921,7 @@ JSResolverHelper::nativeAsyncRequest( const int requestId, const QString& url,
QByteArray data;
if ( options.contains( "data" ) )
{
data = options["data"].toString().toLatin1();
data = options["data"].toString().toUtf8();
}
reply = new NetworkReply( Tomahawk::Utils::nam()->post( req, data ) );
}