anchor.diff:      send_response_no_cors(Req, Code, Headers1, Body).
   
   send_response_no_cors(#httpd{mochi_req=MochiReq}=Req, Code, Headers, Body) ->
  -    log_request(Req, Code),
  -    couch_stats:increment_counter([couchdb, httpd_status_codes, Code]),
       Headers1 = http_1_0_keep_alive(MochiReq, Headers),
       Headers2 = basic_headers_no_cors(Req, Headers1),
  +    Resp = handle_response(Req, Code, Headers2, Body, respond),
       log_response(Code, Body),
  -    {ok, MochiReq:respond({Code, Headers2, Body})}.
  +    {ok, Resp}.
   
   send_method_not_allowed(Req, Methods) ->
       send_error(Req, 405, [{"Allow", Methods}], <<"method_not_allowed">>, ?l2b("Only " ++ Methods ++ " allowed")).
  
positive.code:         ++ server_header()
          ++ couch_httpd_auth:cookie_auth_header(Req, Headers).
  
  
  %%%%%%%% module tests below %%%%%%%%
  
  
negative.code:     end.
  
  start_response_length(#httpd{mochi_req=MochiReq}=Req, Code, Headers0, Length) ->
      Headers1 = basic_headers(Req, Headers0),
      Resp = handle_response(Req, Code, Headers1, Length, start_response_length),
      case MochiReq:get(method) of
      'HEAD' -> throw({http_head_abort, Resp});
      _ -> ok
  