bug(#46): header 값 요청 변경#59
Hidden character warning
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughSubmissionCommandController의 첨부파일 다운로드 로직을 업데이트하여, 저장된 원본 파일명과 콘텐츠 타입을 기반으로 응답의 Content-Type을 동적으로 설정하고, Content-Disposition 헤더를 ContentDisposition 빌더로 구성하도록 변경했습니다. 기타 메소드 흐름은 유지되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Client
participant Ctl as SubmissionCommandController
participant S as Storage/Repository
C->>Ctl: GET /submissions/{id}/attachments/{attachmentId}/download
Ctl->>S: Find SubmissionAttachment(attachmentId)
S-->>Ctl: Attachment(meta: filename, contentType), Resource
note over Ctl: Determine mediaType = contentType or ALL<br/>Build Content-Disposition via ContentDisposition
Ctl-->>C: 200 OK<br/>Headers: Content-Type, Content-Disposition<br/>Body: file stream
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
header 공통 반환
Summary by CodeRabbit