Delete useless comma

This commit is contained in:
jD91mZM2 2017-09-08 17:02:33 +02:00
parent f73dec458e
commit c768789edf
No known key found for this signature in database
GPG key ID: 3A818BC1F5617A24

View file

@ -1382,7 +1382,7 @@ func (s *Session) ChannelMessageSendComplex(channelID string, data *MessageSend)
for i, file := range files { for i, file := range files {
h := make(textproto.MIMEHeader) 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 contentType := file.ContentType
if contentType == "" { if contentType == "" {
contentType = "application/octet-stream" contentType = "application/octet-stream"