mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-23 16:06:16 +00:00
14 lines
531 B
Diff
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);
|
|
}
|