Skip to content

Commit eeefafd

Browse files
committed
chore: 게시글 삭제 성공 시 메시지 수정
1 parent 4637ccb commit eeefafd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/org/myteam/server/board/controller/BoardController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ public ResponseEntity<ResponseDto<BoardResponse>> getBoard(@PathVariable final L
7171
public ResponseEntity<ResponseDto<Void>> deleteBoard(@PathVariable final Long boardId,
7272
@AuthenticationPrincipal final CustomUserDetails userDetails) {
7373
boardService.deleteBoard(boardId, userDetails);
74-
return ResponseEntity.ok(new ResponseDto<>(SUCCESS.name(), "카테고리 삭제 성공", null));
74+
return ResponseEntity.ok(new ResponseDto<>(SUCCESS.name(), "게시글 삭제 성공", null));
7575
}
7676
}

src/main/java/org/myteam/server/util/ClientUtils.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ public class ClientUtils {
1010
public static String getRemoteIP(HttpServletRequest request) {
1111
String ip = request.getHeader("X-FORWARDED-FOR");
1212

13-
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
13+
if (ip == null || ip.isEmpty() || "unknown".equalsIgnoreCase(ip)) {
1414
ip = request.getHeader("Proxy-Client-IP");
1515
}
16-
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
16+
if (ip == null || ip.isEmpty() || "unknown".equalsIgnoreCase(ip)) {
1717
ip = request.getHeader("WL-Proxy-Client-IP");
1818
}
19-
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
19+
if (ip == null || ip.isEmpty() || "unknown".equalsIgnoreCase(ip)) {
2020
ip = request.getHeader("HTTP_CLIENT_IP");
2121
}
22-
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
22+
if (ip == null || ip.isEmpty() || "unknown".equalsIgnoreCase(ip)) {
2323
ip = request.getHeader("HTTP_X_FORWARDED_FOR");
2424
}
25-
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
25+
if (ip == null || ip.isEmpty() || "unknown".equalsIgnoreCase(ip)) {
2626
ip = request.getRemoteAddr();
2727
}
2828

0 commit comments

Comments
 (0)