Skip to content

Commit

Permalink
feat: add log info
Browse files Browse the repository at this point in the history
  • Loading branch information
rchen9 committed Nov 15, 2024
1 parent c168894 commit 8b318cb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public String getUser(String code, String redirectUri) {
String tokenUrl = String.format(gitlabUri + TOKEN_SUFFIX, clientId, secret, code, redirectUri);
try {
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON_UTF8);
// headers.setContentType(MediaType.APPLICATION_JSON_UTF8);
headers.setContentType(MediaType.APPLICATION_JSON);
Map tokenResponse = httpWebServiceApiClient.rawPost(tokenUrl, headers);
Map<String, String> tokenBody = Objects.requireNonNull(tokenResponse);
LogUtils.info(LOGGER, "gitlab get user token info", tokenBody);
Expand Down

0 comments on commit 8b318cb

Please sign in to comment.