mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 11:30:49 +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:
4
thirdparty/liblastfm2/src/ws/ws.cpp
vendored
4
thirdparty/liblastfm2/src/ws/ws.cpp
vendored
@@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user