anchor.diff:      end;
   
   
  -handle_ut(CliSock, ARG, UT = #urltype{type = redir}, _N) ->
  +handle_ut(CliSock, ARG, UT = #urltype{type = redir}, N) ->
       Req = ARG#arg.req,
       H = ARG#arg.headers,
       yaws:outh_set_dyn_headers(Req, H, UT),
  +    case yaws:outh_get_doclose() of
  +        true  -> ok;
  +        _     -> flush(CliSock, N, H#headers.content_length,
  +                       yaws:to_lower(H#headers.transfer_encoding))
  +    end,
       deliver_302(CliSock, Req, ARG, UT#urltype.path);
   
   handle_ut(CliSock, ARG, UT = #urltype{type = appmod}, N) ->
  
positive.code:     put(client_data_pos, N),
      {page, {[{status, Code}], Page}};
  deliver_redirect_map(CliSock, Req, Arg,
                       {_Prefix, Code, URL, Mode}, _N) when is_record(URL, url) ->
      %% Here Code is 3xx
      ?Debug("in redir ~p", [Code]),
      H = get(outh),
  
negative.code:     Loc = ["Location: ", LocPath, "\r\n"],
  
      {DoClose, _Chunked} = yaws:dcc(Req, Arg#arg.headers),
      case DoClose of
          true  -> ok;
          _     -> flush(CliSock, N, (Arg#arg.headers)#headers.content_length,
                         (Arg#arg.headers)#headers.transfer_encoding)
      end,
      new_redir_h(H#outh{
                    connection = yaws:make_connection_close_header(DoClose),
                    doclose    = DoClose,
  