From 157d526129e10eeb4cb8ddeff3fa48870ba0c099 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Wed, 9 Dec 2020 15:39:01 +0100 Subject: [PATCH] Include auth type in http log --- src/libsync/httplogger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }