Fixing UploadFile command by writing bytes

This commit is contained in:
Denis-Cosmin Nutiu 2017-11-26 23:15:09 +02:00
parent 34ab765a5c
commit 96681b07b8

View file

@ -53,7 +53,7 @@ func UploadFile(c Client) (string, error) {
log.Println(c.Connection().RemoteAddr().String() + " has reached timeout!") log.Println(c.Connection().RemoteAddr().String() + " has reached timeout!")
break break
} }
f.WriteString(input.Text() + "\n") f.Write(input.Bytes())
} }
return filename, nil return filename, nil