From: Hannah von Reth Date: Wed, 9 Dec 2020 14:39:01 +0000 (+0100) Subject: Include auth type in http log X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~446^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=157d526129e10eeb4cb8ddeff3fa48870ba0c099;p=nextcloud-desktop.git Include auth type in http log --- diff --git a/src/libsync/httplogger.cpp b/src/libsync/httplogger.cpp index 85b2ebbf1..8f22bbe4b 100644 --- a/src/libsync/httplogger.cpp +++ b/src/libsync/httplogger.cpp @@ -53,7 +53,8 @@ void logHttp(const QByteArray &verb, const QString &url, const QByteArray &id, c for (const auto &it : header) { stream << it.first << ": "; if (it.first == "Authorization") { - stream << "[redacted]"; + stream << (it.second.startsWith("Bearer ") ? "Bearer" : "Basic"); + stream << " [redacted]"; } else { stream << it.second; }