NOISSUE remove use of obsolete URL constants, simplify the rest

This commit is contained in:
Petr Mrázek
2018-11-04 13:18:35 +01:00
parent 16cc20aefd
commit 58260da861
8 changed files with 13 additions and 18 deletions

View File

@ -42,7 +42,7 @@ void YggdrasilTask::executeTask()
// Get the content of the request we're going to send to the server.
QJsonDocument doc(getRequestContent());
QUrl reqUrl("https://" + URLConstants::AUTH_BASE + getEndpoint());
QUrl reqUrl(URLConstants::AUTH_BASE + getEndpoint());
QNetworkRequest netRequest(reqUrl);
netRequest.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");