anchor.diff:      {ok, SocketOptions} = couch_util:parse_term(
           couch_config:get("httpd", "socket_options", "[]")),
   
  +    set_auth_handlers(),
  +
       Loop = fun(Req)->
           case SocketOptions of
           [] ->
  
positive.code:     },
  
      HandlerFun = couch_util:dict_find(HandlerKey, UrlHandlers, DefaultFun),
  
      {ok, Resp} =
      try
          case authenticate_request(HttpReq, AuthenticationSrcs) of
          #httpd{} = Req ->
              HandlerFun(Req);
          Response ->
  
negative.code: handle_request_int(MochiReq, DefaultFun,
              UrlHandlers, DbUrlHandlers, DesignUrlHandlers) ->
      Begin = now(),
      % for the path, use the raw path with the query string and fragment
      % removed, but URL quoting left intact
      RawUri = MochiReq:get(raw_path),
  