anchor.diff:      log_request(Req, Code),
       couch_stats:increment_counter([couchdb, httpd_status_codes, Code]),
       Headers1 = http_1_0_keep_alive(MochiReq, Headers),
  -    Headers2 = Headers1 ++ server_header() ++
  -               couch_httpd_auth:cookie_auth_header(Req, Headers1),
  +    Headers2 = basic_headers_no_cors(Req, Headers1),
       log_response(Code, Body),
       {ok, MochiReq:respond({Code, Headers2, Body})}.
   
  
positive.code:         false -> Headers
      end.
  
  start_chunked_response(#httpd{mochi_req=MochiReq}=Req, Code, Headers) ->
      log_request(Req, Code),
      couch_stats:increment_counter([couchdb, httpd_status_codes, Code]),
      Headers1 = http_1_0_keep_alive(MochiReq, Headers),
      Headers2 = Headers1 ++ server_header() ++
                 couch_httpd_auth:cookie_auth_header(Req, Headers1),
      Headers3 = chttpd_cors:headers(Req, Headers2),
      Resp = MochiReq:respond({Code, Headers3, chunked}),
      case MochiReq:get(method) of
      'HEAD' -> throw({http_head_abort, Resp});
      _ -> ok
  
negative.code:             ok
      end.
  
  start_response_length(#httpd{mochi_req=MochiReq}=Req, Code, Headers0, Length) ->
      log_request(Req, Code),
      couch_stats:increment_counter([couchdb, httpd_status_codes, Code]),
      Headers1 = basic_headers(Req, Headers0),
      Resp = MochiReq:start_response_length({Code, Headers1, Length}),
      case MochiReq:get(method) of
      'HEAD' -> throw({http_head_abort, Resp});
      _ -> ok
      end,
      {ok, Resp}.
  
  start_response(#httpd{mochi_req=MochiReq}=Req, Code, Headers0) ->
      log_request(Req, Code),
      couch_stats:increment_counter([couchdb, httpd_status_codes, Code]),
      Headers1 = basic_headers(Req, Headers0),
      Resp = MochiReq:start_response({Code, Headers1}),
      case MochiReq:get(method) of
          'HEAD' -> throw({http_head_abort, Resp});
          _ -> ok
  