Browse Source

Include auth type in http log

Hannah von Reth 5 years ago
parent
commit
157d526129
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/libsync/httplogger.cpp

+ 2 - 1
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;
         }