File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/main/java/org/myteam/server Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments