chore: fix warnings (#3990)

This commit is contained in:
Kevin Wan
2024-03-09 13:48:11 +08:00
committed by GitHub
parent 159ecb7386
commit e9e55125a9
16 changed files with 39 additions and 37 deletions

View File

@@ -1,6 +1,9 @@
package httpx
import "net/http"
import (
"errors"
"net/http"
)
const xForwardedFor = "X-Forwarded-For"
@@ -11,7 +14,7 @@ func GetFormValues(r *http.Request) (map[string]any, error) {
}
if err := r.ParseMultipartForm(maxMemory); err != nil {
if err != http.ErrNotMultipart {
if !errors.Is(err, http.ErrNotMultipart) {
return nil, err
}
}