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:
parent
1182ae9e26
commit
58abebe9ac
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user