projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6f7789
)
Include auth type in http log
author
Hannah von Reth
<hannah.vonreth@owncloud.com>
Wed, 9 Dec 2020 14:39:01 +0000
(15:39 +0100)
committer
Kevin Ottens
<kevin.ottens@nextcloud.com>
Wed, 30 Dec 2020 15:17:46 +0000
(16:17 +0100)
src/libsync/httplogger.cpp
patch
|
blob
|
history
diff --git
a/src/libsync/httplogger.cpp
b/src/libsync/httplogger.cpp
index 85b2ebbf15776ebddfa95cc4d93eb54abab98ad8..8f22bbe4bdf8a01df079e720694a5333f1ac3696 100644
(file)
--- 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;
}