Skip to content

Commit

Permalink
secureCodeBox#121 Log in Debug Level Which Auth Headers are Set
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Strittmatter <[email protected]>
  • Loading branch information
Weltraumschaf committed Feb 16, 2024
1 parent 2f23058 commit 67a4cb7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ public AuthHeaderFactory(@NonNull Config config) {
* @return never {@code null}
*/
public HttpHeaders generateAuthorizationHeaders() {
HttpHeaders headers = new HttpHeaders();
final var headers = new HttpHeaders();
log.debug("Add Authorization header.");
headers.set(HttpHeaders.AUTHORIZATION, "Token " + this.config.getApiKey());

if (proxyConfig.isComplete()) {
log.info("Setting Proxy Auth Header...");
log.debug("Add Proxy-Authorization header.");
headers.set(HttpHeaders.PROXY_AUTHORIZATION, "Basic " + encodeProxyCredentials(proxyConfig));
}

Expand Down

0 comments on commit 67a4cb7

Please sign in to comment.