浏览代码

Delete useless comma

jD91mZM2 7 年之前
父节点
当前提交
c768789edf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      restapi.go

+ 1 - 1
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"