Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for content_da (0.05 sec)

  1. cmd/xl-storage-format_test.go

    		XLV1:             false,
    		ModTime:          time.Now(),
    		Size:             1234456,
    		Mode:             0,
    		Metadata: map[string]string{
    			xhttp.AmzRestore:                 "FAILED",
    			xhttp.ContentMD5:                 mustGetUUID(),
    			xhttp.AmzBucketReplicationStatus: "PENDING",
    			xhttp.ContentType:                "application/json",
    		},
    		Parts: []ObjectPartInfo{
    			{
    				Number:     1,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. cmd/utils.go

    // validateLengthAndChecksum returns if a content checksum is set,
    // and will replace r.Body with a reader that checks the provided checksum
    func validateLengthAndChecksum(r *http.Request) bool {
    	if mdFive := r.Header.Get(xhttp.ContentMD5); mdFive != "" {
    		want, err := base64.StdEncoding.DecodeString(mdFive)
    		if err != nil {
    			return false
    		}
    		r.Body = hash.NewChecker(r.Body, md5.New(), want, r.ContentLength)
    		return true
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 33K bytes
    - Viewed (0)
Back to top