Repository navigation
fix(cli): mcc rest -f 파일 본문 보완 - #103
Merged
Merged
Conversation
- -f 플래그가 fileData 에 바인딩되어 있어 SetReqData 가 읽는 inputFileData 가 항상 비어 있었음 → 모든 메서드에서 파일 내용 대신 빈 본문이 전송됨 - -f 를 inputFileData 에 바인딩하고 사용되지 않는 fileData 제거 - SetReqData 오류(파일 없음 등)를 무시하던 부분을 출력 후 exit 1 로 처리
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 내용
mcc rest의-f(파일 본문) 옵션이 동작하지 않던 문제를 수정했습니다(src/cmd/rest/root.go).-f플래그가fileData에 바인딩되어 있었지만 본문을 만드는SetReqData()는inputFileData를 읽어, POST/PUT/PATCH 모두 파일 내용 대신 빈 본문이 전송됨-f를inputFileData에 바인딩하고 사용되지 않는fileData제거SetReqData()오류를 무시하던 부분을 오류 출력 후exit 1로 처리(없는 파일 지정 시 빈 본문 요청이 나가지 않도록)