mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 05:25:50 +03:00
Include auth type in http log
This commit is contained in:
parent
f6f7789afa
commit
157d526129
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue