Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hasContentMD5 (0.11 sec)

  1. cmd/utils.go

    	err := d.Decode(v)
    	if errors.Is(err, io.EOF) {
    		err = &xml.SyntaxError{
    			Line: 0,
    			Msg:  err.Error(),
    		}
    	}
    	return err
    }
    
    // hasContentMD5 returns true if Content-MD5 header is set.
    func hasContentMD5(h http.Header) bool {
    	_, ok := h[xhttp.ContentMD5]
    	return ok
    }
    
    // http://docs.aws.amazon.com/AmazonS3/latest/dev/UploadingObjects.html
    const (
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  2. cmd/object-handlers.go

    		return
    	}
    
    	if _, err := objectAPI.GetBucketInfo(ctx, bucket, BucketOptions{}); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	if !hasContentMD5(r.Header) {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMissingContentMD5), r.URL)
    		return
    	}
    
    	if rcfg, _ := globalBucketObjectLockSys.Get(bucket); !rcfg.LockEnabled {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top