Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ParseMediaType (0.06 sec)

  1. 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)
Back to top