Changeset 1810

Show
Ignore:
Timestamp:
08/14/08 12:43:24 (3 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r1808 r1810  
    112008-08-14  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/server.c: Clean up. Removes an unnecessary check that 
     4        was implemented in the virtual server class. 
    25 
    36        * cherokee/handler_dirlist.c (check_request_finish_with_slash): 
  • cherokee/trunk/cherokee/server.c

    r1799 r1810  
    15751575 
    15761576 
    1577 static ret_t 
    1578 perform_post_configure_checks (cherokee_server_t *srv) 
    1579 { 
    1580         int              re; 
    1581         cherokee_list_t *i; 
    1582  
    1583         /* Ensure that Virtual servers have a document root 
    1584          */ 
    1585         list_for_each (i, &srv->vservers) { 
    1586                 re = cherokee_buffer_is_empty (&VSERVER(i)->root); 
    1587                 if (re) { 
    1588                         PRINT_MSG_S ("Virtual Server  needs a Document Root\n"); 
    1589                         return ret_error; 
    1590                 } 
    1591         } 
    1592  
    1593         return ret_ok; 
    1594 } 
    1595  
    1596  
    15971577ret_t  
    15981578cherokee_server_read_config_string (cherokee_server_t *srv, cherokee_buffer_t *string) 
     
    16061586 
    16071587        ret = configure_server (srv); 
    1608         if (ret != ret_ok) return ret; 
    1609  
    1610         /* Ensure that the server is ready 
    1611          */ 
    1612         ret = perform_post_configure_checks (srv); 
    16131588        if (ret != ret_ok) return ret; 
    16141589 
     
    16371612        ret = configure_server (srv); 
    16381613        if (ret != ret_ok) goto error; 
    1639  
    1640         /* Ensure that the server is ready 
    1641          */ 
    1642         ret = perform_post_configure_checks (srv); 
    1643         if (ret != ret_ok) return ret; 
    16441614 
    16451615        /* Clean up