- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ParseMediaType (0.12 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) -
api/go1.txt
pkg math/rand, type Source interface, Seed(int64) pkg math/rand, type Zipf struct pkg mime, func AddExtensionType(string, string) error pkg mime, func FormatMediaType(string, map[string]string) string pkg mime, func ParseMediaType(string) (string, map[string]string, error) pkg mime, func TypeByExtension(string) string pkg mime/multipart, func NewReader(io.Reader, string) *Reader pkg mime/multipart, func NewWriter(io.Writer) *Writer
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)