parnurzeal / gorequest

GoRequest -- Simplified HTTP client ( inspired by nodejs SuperAgent )
http://parnurzeal.github.io/gorequest/
MIT License
3.44k stars 414 forks source link

Why is there such logic? Isn't it allowed to upload files with fields as file? Who taught you how to do it #277

Closed houxinlin closed 11 months ago

houxinlin commented 1 year ago
    if fieldname == "file" || fieldname == "" {
        fieldname = "file" + strconv.Itoa(len(s.FileData)+1)
    }
houxinlin commented 11 months ago

fix