mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
* refs #658, set user-agent "swift" to swift requests
some style changes in same step
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include "blackmisc/network/url.h"
|
||||
#include "blackmisc/network/networkutils.h"
|
||||
#include "blackmisc/propertyindex.h"
|
||||
|
||||
#include <QJsonValue>
|
||||
@@ -139,7 +140,7 @@ namespace BlackMisc
|
||||
|
||||
QNetworkRequest CUrl::toNetworkRequest() const
|
||||
{
|
||||
return QNetworkRequest(this->toQUrl());
|
||||
return CNetworkUtils::getNetworkRequest(*this);
|
||||
}
|
||||
|
||||
CUrl CUrl::withAppendedPath(const QString &path) const
|
||||
|
||||
Reference in New Issue
Block a user