Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for parseSizeFromContentRange (0.09 seconds)

  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)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 26.1K bytes
    - Click Count (0)
Back to Top