Joburgess 5 년 전
부모
커밋
4f56409fe1
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      edu-user/edu-user-server/src/main/java/com/keao/edu/user/controller/ShortUrlController.java

+ 1 - 2
edu-user/edu-user-server/src/main/java/com/keao/edu/user/controller/ShortUrlController.java

@@ -13,7 +13,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
 
 import javax.servlet.http.HttpServletResponse;
 import java.io.IOException;
-import java.net.URLEncoder;
 import java.util.Objects;
 
 /**
@@ -34,7 +33,7 @@ public class ShortUrlController extends BaseController {
         if(Objects.isNull(shortUrl)|| StringUtils.isBlank(shortUrl.getUrl())){
             return;
         }
-        response.sendRedirect(URLEncoder.encode(shortUrl.getUrl(), "UTF-8"));
+        response.sendRedirect(shortUrl.getUrl());
     }
 
 }