hosuton 종료 안되는 문제 수정

This commit is contained in:
2024-11-12 16:43:39 +09:00
parent 43b5aee48b
commit 46dd289c28
2 changed files with 5 additions and 2 deletions

View File

@ -141,7 +141,6 @@ func (h *houstonHandler) RegisterHandlers(serveMux gocommon.ServerMuxInterface,
filepath := path.Join(dir, filename)
// filepath가 이미 있으면 append
localfile, _ := os.OpenFile(filepath, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0666)
logger.Println("file uploaded :", localfile)
if localfile != nil {
defer localfile.Close()
if _, err = io.Copy(localfile, r.Body); err != nil {