* refs #658, set user-agent "swift" to swift requests

some style changes in same step
This commit is contained in:
Klaus Basan
2016-05-24 00:39:20 +02:00
parent 954ddfb2e7
commit 5789bdd722
3 changed files with 23 additions and 13 deletions

View File

@@ -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