Skip to content

Commit

Permalink
Changed from HIDDEN to BLACKLISTED for logged headers that marked inc…
Browse files Browse the repository at this point in the history
…luded in blacklist
  • Loading branch information
johanhaleby committed Jan 17, 2020
1 parent fe287c5 commit aff2a28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,7 @@ public void logsMultiPartParamsOnLogAll() throws Exception {
"Form params:\t<none>%n" +
"Path params:\tfirstName=John%n" +
"\t\t\t\tlastName=Doe%n" +
"Headers:\t\tAccept=[ HIDDEN ]%n" +
"Headers:\t\tAccept=[ BLACKLISTED ]%n" +
"Cookies:\t\t<none>%n" +
"Multiparts:\t\t<none>%n" +
"Body:\t\t\t<none>%n")));
Expand Down Expand Up @@ -1477,7 +1477,7 @@ public void logsMultiPartParamsOnLogAll() throws Exception {
"Form params:\t<none>%n" +
"Path params:\tfirstName=John%n" +
"\t\t\t\tlastName=Doe%n" +
"Headers:\t\tAccept=[ HIDDEN ]%n" +
"Headers:\t\tAccept=[ BLACKLISTED ]%n" +
"Cookies:\t\t<none>%n" +
"Multiparts:\t\t<none>%n" +
"Body:\t\t\t<none>%n")));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class RequestPrinter {
private static final String TAB = "\t";
private static final String EQUALS = "=";
private static final String NONE = "<none>";
private static final String HIDDEN = "[ HIDDEN ]";
private static final String BLACKLISTED = "[ BLACKLISTED ]";

public static String print(FilterableRequestSpecification requestSpec, String requestMethod, String completeRequestUri,
LogDetail logDetail, Set<String> blacklistedHeaders,
Expand Down Expand Up @@ -148,7 +148,7 @@ private static void addHeaders(FilterableRequestSpecification requestSpec, Set<S
}
Header processedHeader = header;
if (blacklistedHeaders.contains(header.getName())) {
processedHeader = new Header(header.getName(), HIDDEN);
processedHeader = new Header(header.getName(), BLACKLISTED);
}
builder.append(processedHeader).append(SystemUtils.LINE_SEPARATOR);
}
Expand Down

0 comments on commit aff2a28

Please sign in to comment.