Skip to content

Commit 85a3ac6

Browse files
committed
fix: type casting error
타입 변환 문제 해결
1 parent fb321e4 commit 85a3ac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

websocket-service/src/main/java/com/oneul_tanda/websocket_service/infrastructure/websocket/AuthHandshakeInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public boolean beforeHandshake(
2020
Map<String, Object> attributes) {
2121

2222
// 헤더에서 x-userid, x-username, chatRoomId 추출
23-
UUID userId = UUID.fromString(request.getHeaders().getFirst("X-User-ID"));
23+
String userId = request.getHeaders().getFirst("X-User-ID");
2424

2525
if (userId != null) {
2626
attributes.put("userId", userId);

0 commit comments

Comments
 (0)