Skip to content

Commit

Permalink
Merge branch 'RE-FIT:main' into community
Browse files Browse the repository at this point in the history
  • Loading branch information
jhy11 authored Aug 12, 2023
2 parents d054852 + c0622c5 commit db30da0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.Optional;


Expand All @@ -37,9 +39,10 @@ public OAuth2 auth(Authentication authentication, HttpServletRequest request) {
}

@GetMapping("/oauth2/fcm")
public FCM getFcm(@RequestHeader("otherId") String otherId) {
public FCM getFcm(@RequestHeader("otherId") String otherId) throws UnsupportedEncodingException {

Optional<Member> other = memberService.findMemberByName(otherId);
String decodedValue = URLDecoder.decode(otherId, "UTF-8");
Optional<Member> other = memberService.findMemberByName(decodedValue);

System.out.println("=====================================");
System.out.println(otherId);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spring:

jpa:
hibernate:
ddl-auto: create
ddl-auto: update

properties:
hibernate:
Expand Down

0 comments on commit db30da0

Please sign in to comment.