Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewChecksumHeader (0.06 sec)

  1. internal/hash/checksum.go

    		return ChecksumCRC64NVME
    	case "":
    		if full != 0 {
    			return ChecksumInvalid
    		}
    		return ChecksumNone
    	}
    	return ChecksumInvalid
    }
    
    // NewChecksumHeader returns a checksum type based on the algorithm string.
    func NewChecksumHeader(h http.Header) ChecksumType {
    	return NewChecksumType(h.Get(xhttp.AmzChecksumAlgo), h.Get(xhttp.AmzChecksumType))
    }
    
    // String returns the type as a string.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 22 14:15:21 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  2. cmd/object-multipart-handlers.go

    				writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				return true
    			}
    			return checkPreconditionsPUT(ctx, w, r, oi, opts)
    		}
    	}
    
    	checksumType := hash.NewChecksumHeader(r.Header)
    	if checksumType.Is(hash.ChecksumInvalid) {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidChecksum), r.URL)
    		return
    	} else if checksumType.IsSet() && !checksumType.Is(hash.ChecksumTrailing) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 39.5K bytes
    - Viewed (0)
Back to top