Fix range request handling, to correctly serve chunks that are larger than the default 1MB block size