Skip to content

Commit

Permalink
update resume (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstaFrode authored Aug 26, 2024
1 parent c2e3ba3 commit 69ec1a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/resume.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (n *Node) ResumeUpload(c *gin.Context) {
}

_, err = io.CopyN(f, c.Request.Body, end-start+1)
if err != nil {
if err != nil && err != io.EOF {
n.Logput("err", clientIp+" CopyN: "+err.Error())
c.String(http.StatusInternalServerError, "Failed to write to file")
return
Expand Down

0 comments on commit 69ec1a9

Please sign in to comment.