添加注释

This commit is contained in:
徐俊杰 2022-03-29 11:45:19 +08:00
parent 1d7e03dd11
commit 243c8aa6f4

View File

@ -263,6 +263,7 @@ func (s *SimpleRequest) initBody() {
s.body = strings.NewReader(tmpData.Encode())
s.Headers().ConentType_formUrlencoded()
default:
//todo 自动判断数据类型
tmpData := url.Values{}
for k, v := range tmpData {
tmpData.Set(k, fmt.Sprintf("%v", v))