1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

* Fixed ws.cpp with Qt 4.8.

This commit is contained in:
Christian Muehlhaeuser 2011-09-10 04:50:54 +02:00
parent 2c180c6123
commit dcdb937cf3

View File

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