Skip to content

fix(cli): mcc rest -f 파일 본문 보완 - #103

Merged
MZC-CSC merged 1 commit into
developfrom
fix/rest-file-flag
Oct 15, 2026
Merged

MZC-CSC merged 1 commit into
developfrom
fix/rest-file-flag

Conversation

@MZC-CSC

@MZC-CSC MZC-CSC commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

변경 내용

mcc rest 의 -f(파일 본문) 옵션이 동작하지 않던 문제를 수정했습니다(src/cmd/rest/root.go).

  • -f 플래그가 fileData 에 바인딩되어 있었지만 본문을 만드는 SetReqData() 는 inputFileData 를 읽어, POST/PUT/PATCH 모두 파일 내용 대신 빈 본문이 전송됨
  • -f 를 inputFileData 에 바인딩하고 사용되지 않는 fileData 제거
  • SetReqData() 오류를 무시하던 부분을 오류 출력 후 exit 1 로 처리(없는 파일 지정 시 빈 본문 요청이 나가지 않도록)

- -f 플래그가 fileData 에 바인딩되어 있어 SetReqData 가 읽는 inputFileData 가
  항상 비어 있었음 → 모든 메서드에서 파일 내용 대신 빈 본문이 전송됨
- -f 를 inputFileData 에 바인딩하고 사용되지 않는 fileData 제거
- SetReqData 오류(파일 없음 등)를 무시하던 부분을 출력 후 exit 1 로 처리
@MZC-CSC
MZC-CSC merged commit ef15291 into develop Oct 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants