From 978bdeb47a04d04867bb422330c5c05a386d7832 Mon Sep 17 00:00:00 2001 From: danielknobe Date: Sat, 31 Aug 2024 19:06:03 +0200 Subject: [PATCH] BasicAuth must be base64 encoding not base64url (rfc4648) see: https://datatracker.ietf.org/doc/html/rfc4648#section-4 --- request.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request.cpp b/request.cpp index 6a07cc6..dd28d13 100644 --- a/request.cpp +++ b/request.cpp @@ -166,7 +166,7 @@ QJSValue RequestPrototype::auth(const QString &user, const QString &password) QByteArray value = QByteArray("Basic ").append( (user + ":" + password) .toUtf8() - .toBase64(QByteArray::Base64UrlEncoding)); + .toBase64()); m_request->setRawHeader(AUTH_HEADER, value); return self();