From 96681b07b8e14d656937708ec92aa900686c2fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nu=C8=9Biu?= Date: Sun, 26 Nov 2017 23:15:09 +0200 Subject: [PATCH] Fixing UploadFile command by writing bytes --- server/server/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server/commands.go b/server/server/commands.go index 898f5df..54d5984 100644 --- a/server/server/commands.go +++ b/server/server/commands.go @@ -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