imroc / req

Simple Go HTTP client with Black Magic
https://req.cool
MIT License
4.12k stars 334 forks source link

Question about the `DisableForceMultipart` #333

Closed terasum closed 3 months ago

terasum commented 3 months ago

I'm curious about : https://github.com/imroc/req/blob/d0373d27487a0fac2a5005e258747bcccb5e44e8/request.go#L1105

// DisableForceMultipart disables force using multipart to upload form data.
func (r *Request) DisableForceMultipart() *Request {
    r.isMultiPart = true
    return r
}

maybe r.isMultiPart = flase is correct?

imroc commented 3 months ago

Nice catch! Will be fixed later.

imroc commented 3 months ago

It's been fixed in v3.43.1