Skip to content

Commit

Permalink
[hotfix] fix: ContentCachingRequestWrapper 타입 캐스팅 방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
elive7 committed Dec 17, 2024
1 parent 8fcdce0 commit a220cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/recordy/server/slack/domain/Slack.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public Slack(HttpServletRequest request) {

private JSONObject getJsonFrom(HttpServletRequest request) {
try {
ContentCachingRequestWrapper requestWrapper = (ContentCachingRequestWrapper) request;
ContentCachingRequestWrapper requestWrapper = new ContentCachingRequestWrapper(request);
String payload = new String(requestWrapper.getContentAsByteArray(), requestWrapper.getCharacterEncoding());
String decodedPayload = URLDecoder.decode(payload, StandardCharsets.UTF_8);

Expand Down

0 comments on commit a220cb8

Please sign in to comment.