anchor.diff:  		    {ok, Req1, []};
   		{OldBucketId, RealPrefix, ContentType, OrigName, Bytes} ->
   		    case validate_range(cowboy_req:header(<<"range">>, Req0), Bytes) of
  -			undefined -> stream_chunks(Req0, OldBucketId, RealPrefix, ContentType, OrigName, Bytes, 0);
  +			undefined ->
  +			    EndByte = utils:to_integer(Bytes),
  +			    stream_chunks(Req0, OldBucketId, RealPrefix, ContentType, OrigName, Bytes, 0, EndByte);
   			{error, Number} -> js_handler:bad_request(Req0, Number);
  -			{StartByte, _EndByte} ->
  -			    stream_chunks(Req0, OldBucketId, RealPrefix, ContentType, OrigName, Bytes, StartByte)
  -		    end
  -	    end
  -    end.
  +			{StartByte, EndByte} ->
  +			    stream_chunks(Req0, OldBucketId, RealPrefix, ContentType, OrigName, Bytes, StartByte, EndByte)
  +		    end
  +	    end
  +    end.
  
positive.code:     end.
  
  
  stream_chunks(Req0, BucketId, RealPrefix, ContentType, OrigName, Bytes, StartByte) ->
      MaxKeys = ?FILE_MAXIMUM_SIZE div ?FILE_UPLOAD_CHUNK_SIZE,
      PartNum0 = (StartByte div ?FILE_UPLOAD_CHUNK_SIZE) + 1,
      case riak_api:list_objects(BucketId, [{max_keys, MaxKeys}, {prefix, RealPrefix ++ "/"}]) of
  	not_found ->
  	    Req1 = cowboy_req:reply(404, #{
  
negative.code: 		    Tokens = lists:last(string:tokens(ObjectKey, "/")),
  		    [N,_] = string:tokens(Tokens, "_"),
  		    case utils:to_integer(N) of
  			I when I >= PartNumStart, I =< PartNumEnd -> {true, ObjectKey};
  			_ -> false
  		    end
  		end, Contents),
  	    List1 = lists:sort(
  		fun(K1, K2) ->
  		    T1 = lists:last(string:tokens(K1, "/")),
  		    [N1,_] = string:tokens(T1, "_"),
  		    T2 = lists:last(string:tokens(K2, "/")),
  		    [N2,_] = string:tokens(T2, "_"),
  		    utils:to_integer(N1) < utils:to_integer(N2)
  		end, List0),
  	    case List1 of
  