Skip to content

Commit

Permalink
Match start of newline
Browse files Browse the repository at this point in the history
  • Loading branch information
nkottary committed Nov 27, 2023
1 parent eb7471a commit 6b3d404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Messages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ function Base.show(io::IO, m::Message)
header_str = sprint(writeheaders, m)
mask_headers = ["Authorization", "Cookie", "Set-Cookie"]
for mh in mask_headers
header_str = replace(header_str, Regex("($mh: ).*\$", "mi") => s"\1******")
header_str = replace(header_str, Regex("^($mh: ).*\$", "mi") => s"\1******")
end
write(io, header_str)

Expand Down

0 comments on commit 6b3d404

Please sign in to comment.