mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-05-25 08:34:05 +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;
|
QNetworkRequest req;
|
||||||
req.setRawHeader("OCS-APIREQUEST", "true");
|
req.setRawHeader("OCS-APIREQUEST", "true");
|
||||||
|
req.setHeader(QNetworkRequest::ContentTypeHeader, QByteArrayLiteral("application/x-www-form-urlencoded"));
|
||||||
QUrlQuery query;
|
QUrlQuery query;
|
||||||
query.addQueryItem(QLatin1String("format"), QLatin1String("json"));
|
query.addQueryItem(QLatin1String("format"), QLatin1String("json"));
|
||||||
QUrl url = Utility::concatUrlPath(account()->url(), path());
|
QUrl url = Utility::concatUrlPath(account()->url(), path());
|
||||||
|
Loading…
Reference in New Issue
Block a user