anchor.diff:  
               % reply with stream and adequate status
               {ok, Req3} = case RawRange of
  -                             undefined -> cowboy_req:reply(?ok, [], {StreamSize,StreamFun}, Req2);
  -                             _ -> cowboy_req:reply(?ok_partial_content, [], {StreamSize,StreamFun}, Req2)
  +                             undefined ->
  +                                 veil_cowboy_bridge:apply(cowboy_req, reply, [?ok, [], {StreamSize, StreamFun}, Req2]);
  +                             _ ->
  +                                 veil_cowboy_bridge:apply(cowboy_req, reply, [?ok_partial_content, [], {StreamSize, StreamFun}, Req2])
                            end,
               {halt, Req3, State}
       end.
  
positive.code:     % get optional 'Range' header
      {RawRange, _} = cowboy_req:header(<<"range">>, Req),
      Ranges = case RawRange of
                   undefined -> [{0,Size-1}];
                   RawRange -> parse_byte_range(State,RawRange)
               end,
  
      % return bad request if Range is invalid
      case Ranges of
          invalid -> cdmi_error:error_reply(Req,State,?error_bad_request_code,"Invalid range: ~p",[RawRange]);
          Ranges ->
              % prepare data size and stream function
              StreamSize = lists:foldl(fun({From,To},Acc) when To >= From -> Acc+To-From+1 end, 0, Ranges),
              UserDN = fslogic_context:get_user_dn(),
              StreamFun = fun (Socket,Transport) ->
                  try
                      fslogic_context:set_user_dn(UserDN),
                      {ok,BufferSize} = application:get_env(veil_cluster_node, control_panel_download_buffer),
                      lists:foreach(fun (Rng) -> stream_file(Socket, Transport, State, Rng, <<"utf-8">>, BufferSize) end, Ranges)
                  catch Type:Message ->
                      % Any exceptions that occur during file streaming must be caught here for cowboy to close the connection cleanly
                      ?error_stacktrace("Error while streaming file '~p' - ~p:~p", [Filepath, Type, Message])
  
negative.code:             end,
      case Range of
          [invalid] -> [invalid];
          {Begin, End} when Begin > End -> [invalid];
          {Begin_, _End} when Begin_ > Size -> parse_byte_range(State, Rest); % range is unsatisfiable and we ignore it
          ValidRange -> [ValidRange | parse_byte_range(State, Rest)]
      end.
  
  