- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ParseMediaType (0.13 sec)
-
cmd/auth-handler.go
_, ok := r.Form[xhttp.AmzAccessKeyID] return ok } // Verify if request has AWS Post policy Signature Version '4'. func isRequestPostPolicySignatureV4(r *http.Request) bool { mediaType, _, err := mime.ParseMediaType(r.Header.Get(xhttp.ContentType)) if err != nil { return false } return mediaType == "multipart/form-data" && r.Method == http.MethodPost }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 17 16:45:46 UTC 2024 - 26.1K bytes - Viewed (0) -
cmd/bucket-handlers.go
v := r.Header.Get("Content-Type") if v == "" { return nil, http.ErrNotMultipart } if r.Body == nil { return nil, errors.New("missing form body") } d, params, err := mime.ParseMediaType(v) if err != nil { return nil, http.ErrNotMultipart } if d != "multipart/form-data" { return nil, http.ErrNotMultipart } boundary, ok := params["boundary"] if !ok {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 12 12:24:04 UTC 2024 - 63.4K bytes - Viewed (0)