Changeset 1810
- Timestamp:
- 08/14/08 12:43:24 (3 months ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/server.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1808 r1810 1 1 2008-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. 2 5 3 6 * cherokee/handler_dirlist.c (check_request_finish_with_slash): cherokee/trunk/cherokee/server.c
r1799 r1810 1575 1575 1576 1576 1577 static ret_t1578 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 root1584 */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 1597 1577 ret_t 1598 1578 cherokee_server_read_config_string (cherokee_server_t *srv, cherokee_buffer_t *string) … … 1606 1586 1607 1587 ret = configure_server (srv); 1608 if (ret != ret_ok) return ret;1609 1610 /* Ensure that the server is ready1611 */1612 ret = perform_post_configure_checks (srv);1613 1588 if (ret != ret_ok) return ret; 1614 1589 … … 1637 1612 ret = configure_server (srv); 1638 1613 if (ret != ret_ok) goto error; 1639 1640 /* Ensure that the server is ready1641 */1642 ret = perform_post_configure_checks (srv);1643 if (ret != ret_ok) return ret;1644 1614 1645 1615 /* Clean up