Skip to content

Commit

Permalink
[FIX] 카카오 헤더 prefix 상수화
Browse files Browse the repository at this point in the history
  • Loading branch information
ohksj77 committed Nov 20, 2023
1 parent 2d7e0e1 commit b9cab10
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
@RequiredArgsConstructor
public abstract class KakaoMapClient<T, R> implements MapClient<T, R> {
private static final Integer NO_LIMIT = -1;
private static final String HEADER_PREFIX = "KakaoAK ";
protected final KakaoProperties kakaoProperties;

protected WebClient generateWebClient() {
Expand All @@ -41,8 +42,7 @@ protected WebClient generateWebClient() {
return WebClient.builder()
.baseUrl(kakaoProperties.getUrl())
.defaultHeader(
HttpHeaders.AUTHORIZATION,
kakaoProperties.getHeaderPrefix() + kakaoProperties.getKey())
HttpHeaders.AUTHORIZATION, HEADER_PREFIX + kakaoProperties.getKey())
.exchangeStrategies(exchangeStrategies)
.build();
}
Expand Down

0 comments on commit b9cab10

Please sign in to comment.