Changeset 1608

Show
Ignore:
Timestamp:
07/04/08 14:10:02 (2 months ago)
Author:
alo
Message:

--

Files:

Legend:

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

    r1607 r1608  
    112008-07-04  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/handler_dirlist.c (check_request_finish_with_slash): 
     4        Adapted to use the new method: use_webdir. 
    25 
    36        * cherokee/connection.c (cherokee_connection_use_webdir), 
  • cherokee/trunk/cherokee/handler_dirlist.c

    r1601 r1608  
    454454 
    455455        if ((cherokee_buffer_is_empty (&conn->request)) || 
    456             (!cherokee_buffer_is_endding (&conn->request, '/'))) { 
    457  
     456            (!cherokee_buffer_is_endding (&conn->request, '/')))  
     457        { 
     458                /* Build the redirection address 
     459                 */ 
    458460                cherokee_buffer_clean (&conn->redirect); 
    459461                cherokee_buffer_ensure_size (&conn->redirect,  
     
    465467                } 
    466468 
    467                 /* Build the redirection 
    468                  */ 
    469                 if ((conn->options & conn_op_document_root) && 
    470                     (! cherokee_buffer_is_empty (&conn->web_directory)))  
    471                 { 
     469                /* In case the connection has a custom Document Root directory, 
     470                 * it must add the web equivalent directory to the path (web_directory). 
     471                 */ 
     472                if (cherokee_connection_use_webdir (conn)) { 
    472473                        cherokee_buffer_add_buffer (&conn->redirect, &conn->web_directory); 
    473474                }