Fixing UploadFile command by writing bytes
This commit is contained in:
parent
34ab765a5c
commit
96681b07b8
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ func UploadFile(c Client) (string, error) {
|
|||
log.Println(c.Connection().RemoteAddr().String() + " has reached timeout!")
|
||||
break
|
||||
}
|
||||
f.WriteString(input.Text() + "\n")
|
||||
f.Write(input.Bytes())
|
||||
}
|
||||
|
||||
return filename, nil
|
||||
|
|
Loading…
Reference in a new issue