1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-04-28 10:15:46 +02:00

Fixed e2e key transmission issue after generation (forgotten content type on sendrequest())

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
(cherry picked from commit a35b346e62)
Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
Dominique Fuchs 2019-09-15 11:53:57 +02:00 committed by Michael Schuster
parent 1182ae9e26
commit 58abebe9ac
No known key found for this signature in database
GPG Key ID: 00819E3BF4177B28

View File

@ -432,6 +432,7 @@ void SignPublicKeyApiJob::start()
{
QNetworkRequest req;
req.setRawHeader("OCS-APIREQUEST", "true");
req.setHeader(QNetworkRequest::ContentTypeHeader, QByteArrayLiteral("application/x-www-form-urlencoded"));
QUrlQuery query;
query.addQueryItem(QLatin1String("format"), QLatin1String("json"));
QUrl url = Utility::concatUrlPath(account()->url(), path());