summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Kudryavtsev <[email protected]>2023-09-01 18:18:37 +0300
committerAnton Kudryavtsev <[email protected]>2023-09-04 18:16:28 +0300
commit470fab51fb6005d38f675f3317ab3615ad8e13dd (patch)
tree7ea7b3dfd56eae5019e530159779c2812284b1a5
parentb4f6399a512a34e1a15cb60f6d7ecb3c002d26a7 (diff)
Tidy up QAuthenticatorPrivate::calculateResponse
call toBase64() with temp value Change-Id: Idedfd91f60900ec51923803a6bb9ed6631e64d94 Reviewed-by: MÃ¥rten Nordheim <[email protected]> Reviewed-by: Timur Pocheptsov <[email protected]>
-rw-r--r--src/network/kernel/qauthenticator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp
index 4c458715e62..e2ad91f1719 100644
--- a/src/network/kernel/qauthenticator.cpp
+++ b/src/network/kernel/qauthenticator.cpp
@@ -554,8 +554,7 @@ QByteArray QAuthenticatorPrivate::calculateResponse(QByteArrayView requestMethod
break;
case QAuthenticatorPrivate::Basic:
methodString = "Basic";
- response = (user + ':'_L1 + password).toLatin1();
- response = response.toBase64();
+ response = (user + ':'_L1 + password).toLatin1().toBase64();
phase = Done;
break;
case QAuthenticatorPrivate::DigestMd5: