anchor.diff:          _ -> throw({error, invalid_bind_address})
       end.
   
  +add_headers(Req, Headers0) ->
  +    Headers = basic_headers(Req, Headers0),
  +    http_1_0_keep_alive(Req, Headers).
  +
  +basic_headers(Req, Headers0) ->
  +    Headers = basic_headers_no_cors(Req, Headers0),
  +    chttpd_cors:headers(Req, Headers).
  +
  +basic_headers_no_cors(Req, Headers) ->
  +    Headers
  +        ++ server_header()
  +        ++ couch_httpd_auth:cookie_auth_header(Req, Headers).
  +
   
   %%%%%%%% module tests below %%%%%%%%
   
  
positive.code:         _ -> no_resp_conn_header(Rest)
      end.
  
  http_1_0_keep_alive(Req, Headers) ->
      KeepOpen = Req:should_close() == false,
      IsHttp10 = Req:get(version) == {1, 0},
  
negative.code: serve_file(#httpd{mochi_req=MochiReq}=Req, RelativePath, DocumentRoot,
             ExtraHeaders) ->
      log_request(Req, 200),
      Headers = basic_headers(Req, ExtraHeaders),
      {ok, MochiReq:serve_file(RelativePath, DocumentRoot, Headers)}.
  
  qs_value(Req, Key) ->
      qs_value(Req, Key, undefined).
  