Skip to content

Commit

Permalink
Redact sensitive headers in cURL logging
Browse files Browse the repository at this point in the history
Fixes #1390.

Looks like sensitive headers argument was just missing.
  • Loading branch information
ak0rz authored Apr 7, 2022
1 parent d96fdb1 commit 8bd4b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/sttp/client3/logging/Log.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class DefaultLog[F[_]](
logger(
beforeRequestSendLogLevel, {
s"Sending request: ${
if (beforeCurlInsteadOfShow && _logRequestBody && _logRequestHeaders) request.toCurl
if (beforeCurlInsteadOfShow && _logRequestBody && _logRequestHeaders) request.toCurl(sensitiveHeaders)
else request.show(includeBody = _logRequestBody, _logRequestHeaders, sensitiveHeaders)
}"
}
Expand Down

0 comments on commit 8bd4b0a

Please sign in to comment.