1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-17 19:37:09 +02:00

Explicitly set Content-Type of POST to application/x-www-form-urlencoded, as Qt 4.8 changed teh default

This commit is contained in:
Leo Franchi
2011-06-11 12:42:13 -04:00
parent 1c43cabd7e
commit badfe28626

View File

@@ -120,7 +120,9 @@ lastfm::ws::post( QMap<QString, QString> params, bool sk )
+ '&';
}
return nam()->post( QNetworkRequest(url()), query );
QNetworkRequest req(url());
req.setHeader( QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded" );
return nam()->post( req, query );
}