Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parseRequestRangeSpec (0.09 sec)

  1. cmd/object-handlers.go

    	if rangeHeader != "" {
    		rs, _ = parseRequestRangeSpec(rangeHeader)
    	}
    
    	if rangeHeader != "" {
    		// Both 'Range' and 'partNumber' cannot be specified at the same time
    		if opts.PartNumber > 0 {
    			writeErrorResponseHeadersOnly(w, errorCodes.ToAPIErr(ErrInvalidRangePartNumber))
    			return
    		}
    
    		if rs, err = parseRequestRangeSpec(rangeHeader); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  2. cmd/object-handlers_test.go

    				instanceType, object, i+1, byteRange, rec.Code, string(bd), err1)
    		}
    
    		var off, length int64
    		var rs *HTTPRangeSpec
    		if byteRange != "" {
    			rs, err = parseRequestRangeSpec(byteRange)
    			if err != nil {
    				t.Fatalf("Object: %s Case %d ByteRange: %s: Unexpected err: %v", object, i+1, byteRange, err)
    			}
    		}
    		off, length, err = rs.GetOffsetLength(objectLength(oi))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
Back to top