mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Include auth type in http log
This commit is contained in:
parent
f6f7789afa
commit
157d526129
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user