Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for parseSizeFromContentRange (0.47 sec)

  1. cmd/bucket-replication-utils.go

    		Version:    resyncMetaVersion,
    	}
    }
    
    var contentRangeRegexp = regexp.MustCompile(`bytes ([0-9]+)-([0-9]+)/([0-9]+|\\*)`)
    
    // parse size from content-range header
    func parseSizeFromContentRange(h http.Header) (sz int64, err error) {
    	cr := h.Get(xhttp.ContentRange)
    	if cr == "" {
    		return sz, fmt.Errorf("Content-Range not set")
    	}
    	parts := contentRangeRegexp.FindStringSubmatch(cr)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 26.3K bytes
    - Viewed (0)
Back to top