From c768789edf02b0fa0b1451d900daa024fa392d8b Mon Sep 17 00:00:00 2001 From: jD91mZM2 Date: Fri, 8 Sep 2017 17:02:33 +0200 Subject: [PATCH] Delete useless comma --- restapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restapi.go b/restapi.go index 7471c4f..e607205 100644 --- a/restapi.go +++ b/restapi.go @@ -1382,7 +1382,7 @@ func (s *Session) ChannelMessageSendComplex(channelID string, data *MessageSend) for i, file := range files { h := make(textproto.MIMEHeader) - h.Set("Content-Disposition", fmt.Sprintf(`form-data; name="file%d"; filename="%s"`, i, quoteEscaper.Replace(file.Name),)) + h.Set("Content-Disposition", fmt.Sprintf(`form-data; name="file%d"; filename="%s"`, i, quoteEscaper.Replace(file.Name))) contentType := file.ContentType if contentType == "" { contentType = "application/octet-stream"