anchor.diff:              ok
       end.
   
  -start_response_length(#httpd{mochi_req=MochiReq}=Req, Code, Headers, Length) ->
  +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 = Headers ++ server_header() ++
  -               couch_httpd_auth:cookie_auth_header(Req, Headers),
  -    Headers2 = chttpd_cors:headers(Req, Headers1),
  -    Resp = MochiReq:start_response_length({Code, Headers2, Length}),
  +    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, Headers) ->
  +start_response(#httpd{mochi_req=MochiReq}=Req, Code, Headers0) ->
       log_request(Req, Code),
       couch_stats:increment_counter([couchdb, httpd_status_codes, Code]),
  -    CookieHeader = couch_httpd_auth:cookie_auth_header(Req, Headers),
  -    Headers1 = Headers ++ server_header() ++ CookieHeader,
  -    Headers2 = chttpd_cors:headers(Req, Headers1),
  -    Resp = MochiReq:start_response({Code, Headers2}),
  +    Headers1 = basic_headers(Req, Headers0),
  +    Resp = MochiReq:start_response({Code, Headers1}),
       case MochiReq:get(method) of
           'HEAD' -> throw({http_head_abort, Resp});
           _ -> ok
  
positive.code:         _ -> throw({error, invalid_bind_address})
      end.
  
  
  %%%%%%%% module tests below %%%%%%%%
  
  
negative.code:         false -> Headers
      end.
  
  start_chunked_response(#httpd{mochi_req=MochiReq}=Req, Code, Headers0) ->
      log_request(Req, Code),
      couch_stats:increment_counter([couchdb, httpd_status_codes, Code]),
      Headers1 = add_headers(Req, Headers0),
      Resp = MochiReq:respond({Code, Headers1, chunked}),
      case MochiReq:get(method) of
      'HEAD' -> throw({http_head_abort, Resp});
      _ -> ok
  