Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestHTTPRequestRangeToHeader (0.15 sec)

  1. cmd/httprange_test.go

    		if isErrInvalidRange(err1) || (err1 == nil && isErrInvalidRange(err2)) {
    			continue
    		}
    		t.Errorf("Case %d: Expected errInvalidRange but: %v %v %d %d %v", i, rs, err1, o, l, err2)
    	}
    }
    
    func TestHTTPRequestRangeToHeader(t *testing.T) {
    	validRangeSpecs := []struct {
    		spec        string
    		errExpected bool
    	}{
    		{"bytes=0-", false},
    		{"bytes=1-", false},
    
    		{"bytes=0-9", false},
    		{"bytes=1-10", false},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun May 05 16:56:21 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top