Skip to content

Commit e176c79

Browse files
committed
fix: Idempotency-Key 헤더 optional 처리 #112
- required = false` 추가
1 parent 4755083 commit e176c79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

default/src/main/java/org/dfbf/soundlink/domain/emotionRecord/controller/EmotionRecordController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class EmotionRecordController {
2828
description = "작성한 감정 기록을 저장 & Idempotency Key를 사용하여 중복 요청을 방지"
2929
)
3030
public ResponseResult saveEmotionWithMusicAndIdempotency(
31-
@RequestHeader(name = "Idempotency-Key") String idempotencyKey,
31+
@RequestHeader(name = "Idempotency-Key", required = false) String idempotencyKey,
3232
@AuthenticationPrincipal Long userId,
3333
@Valid @RequestBody EmotionRecordRequestDTO request) {
3434
return emotionRecordService.saveEmotionRecordWithMusicAndIdempotent(idempotencyKey, userId, request);

0 commit comments

Comments
 (0)