0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 16:06:16 +00:00
termux-packages/x11-packages/nextcloud-client/tokencredentials.cpp.patch
2024-04-02 09:54:33 +02:00

14 lines
531 B
Diff

--- a/src/libsync/creds/tokencredentials.cpp
+++ b/src/libsync/creds/tokencredentials.cpp
@@ -62,8 +62,8 @@ protected:
// A pre-authenticated cookie
QByteArray token = _cred->_token.toUtf8();
if (token.length() > 0) {
- setRawCookie(token, request.url());
- }
+ req.setHeader(QNetworkRequest::CookieHeader, QVariant::fromValue(QList<QNetworkCookie>() << QNetworkCookie::parseCookies(token)));
+ }
return AccessManager::createRequest(op, req, outgoingData);
}