anchor.diff:      Req;
   possibly_hack(Req) ->
       Req.
  +
  +check_request_uri_length(Uri) ->
  +    check_request_uri_length(Uri, config:get("httpd", "max_uri_length")).
  +
  +check_request_uri_length(_Uri, undefined) ->
  +    ok;
  +check_request_uri_length(Uri, MaxUriLen) when is_list(MaxUriLen) ->
  +    case length(Uri) > list_to_integer(MaxUriLen) of
  +        true ->
  +            throw(request_uri_too_long);
  +        false ->
  +            ok
  +    end.
   
   fix_uri(Req, Props, Type) ->
       case is_http(replication_uri(Type, Props)) of
  
positive.code: 
      Result =
      try
          case authenticate_request(HttpReq, AuthenticationFuns) of
          #httpd{} = Req ->
              HandlerFun = url_handler(HandlerKey),
  
negative.code:         exit:{mochiweb_recv_error, E} ->
              couch_log:notice(LogForClosedSocket ++ " - ~p", [E]),
              exit(normal);
          exit:{uri_too_long, _} ->
              send_error(HttpReq, request_uri_too_long);
          throw:Error ->
              send_error(HttpReq, Error);
          error:database_does_not_exist ->
  