Adding range and HEAD request support from upstream