Changeset 632

Show
Ignore:
Timestamp:
01/21/07 21:20:34 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

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

    r631 r632  
     12007-01-21  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/http.c (cherokee_http_code_copy) 
     4        (cherokee_http_code_to_string): request_entity_too_large wasn't 
     5        supported. 
     6 
     7        * contrib/05to06.py (Syntax): Added a 'ScriptAlias' to 
     8        script_alias rule. 
     9         
     10        * cherokee/handler_cgi_base.c (cherokee_handler_cgi_base_build_envp): 
     11        Removed TRACE.  It was printing it inside the response header. 
     12 
     132007-01-20  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     14 
     15        * cherokee/connection.c (cherokee_connection_setup_error_handler): 
     16        Trace block relocated. 
     17 
    1182007-01-19  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
    219 
  • cherokee/trunk/cherokee/connection.c

    r602 r632  
    381381                ret = entry->handler_new_func ((void **) &conn->handler, conn, entry->handler_properties); 
    382382                if (ret == ret_ok) goto out; 
    383  
     383        }  
     384 
     385        /* If something was wrong, try with the default error handler 
     386         */ 
     387        ret = cherokee_handler_error_new (&conn->handler, conn, NULL); 
     388 
     389out: 
    384390#ifdef TRACE_ENABLED 
    385                 {  
    386                         const char *name = NULL; 
    387                         cherokee_module_get_name (MODULE(conn->handler), &name); 
    388                         TRACE(ENTRIES, "New handler %s\n", name); 
    389                 } 
     391        {  
     392                const char *name = NULL; 
     393 
     394                cherokee_module_get_name (MODULE(conn->handler), &name); 
     395                TRACE(ENTRIES, "New handler %s\n", name); 
     396        } 
    390397#endif 
    391         }  
    392  
    393         /* If something was wrong, try with the default error handler 
    394          */ 
    395         ret = cherokee_handler_error_new (&conn->handler, conn, NULL); 
    396  
    397 out: 
     398 
    398399        /* Nothing should be mmaped any longer 
    399400         */ 
  • cherokee/trunk/cherokee/handler_cgi_base.c

    r599 r632  
    501501         
    502502        cgi->add_env_pair (cgi, "SCRIPT_NAME", 11, tmp.buf, tmp.len); 
    503         TRACE (ENTRIES, "SCRIPT_NAME '%s'\n", tmp.buf); 
    504503 
    505504        /* SCRIPT_FILENAME 
  • cherokee/trunk/cherokee/http.c

    r597 r632  
    9494{ 
    9595        switch (code) { 
    96         case http_ok:                    *str = http_ok_string; break; 
    97         case http_accepted:              *str = http_accepted_string; break; 
    98         case http_partial_content:       *str = http_partial_content_string; break; 
    99         case http_moved_permanently:     *str = http_moved_permanently_string; break; 
    100         case http_moved_temporarily:     *str = http_moved_temporarily_string; break; 
    101         case http_unauthorized:          *str = http_unauthorized_string; break; 
    102         case http_not_modified:          *str = http_not_modified_string; break; 
    103         case http_bad_request:           *str = http_bad_request_string; break; 
    104         case http_access_denied:         *str = http_access_denied_string; break; 
    105         case http_not_found:             *str = http_not_found_string; break; 
    106         case http_method_not_allowed:    *str = http_method_not_allowed_string; break; 
    107         case http_length_required:       *str = http_length_required_string; break; 
    108         case http_request_uri_too_long:  *str = http_request_uri_too_long_string; break; 
    109         case http_range_not_satisfiable: *str = http_range_not_satisfiable_string; break; 
    110         case http_upgrade_required:      *str = http_upgrade_required_string; break; 
    111         case http_internal_error:        *str = http_internal_error_string; break; 
    112         case http_bad_gateway:           *str = http_bad_gateway_string; break; 
    113         case http_service_unavailable:   *str = http_service_unavailable_string; break; 
    114         case http_continue:              *str = http_continue_string; break; 
    115         case http_switching_protocols:   *str = http_switching_protocols_string; break; 
     96        case http_ok:                       *str = http_ok_string; break; 
     97        case http_accepted:                 *str = http_accepted_string; break; 
     98        case http_partial_content:          *str = http_partial_content_string; break; 
     99        case http_moved_permanently:        *str = http_moved_permanently_string; break; 
     100        case http_moved_temporarily:        *str = http_moved_temporarily_string; break; 
     101        case http_unauthorized:             *str = http_unauthorized_string; break; 
     102        case http_not_modified:             *str = http_not_modified_string; break; 
     103        case http_bad_request:              *str = http_bad_request_string; break; 
     104        case http_access_denied:            *str = http_access_denied_string; break; 
     105        case http_not_found:                *str = http_not_found_string; break; 
     106        case http_method_not_allowed:       *str = http_method_not_allowed_string; break; 
     107        case http_length_required:          *str = http_length_required_string; break; 
     108        case http_request_entity_too_large: *str = http_request_entity_too_large_string; break; 
     109        case http_request_uri_too_long:     *str = http_request_uri_too_long_string; break; 
     110        case http_range_not_satisfiable:    *str = http_range_not_satisfiable_string; break; 
     111        case http_upgrade_required:         *str = http_upgrade_required_string; break; 
     112        case http_internal_error:           *str = http_internal_error_string; break; 
     113        case http_bad_gateway:              *str = http_bad_gateway_string; break; 
     114        case http_service_unavailable:      *str = http_service_unavailable_string; break; 
     115        case http_continue:                 *str = http_continue_string; break; 
     116        case http_switching_protocols:      *str = http_switching_protocols_string; break; 
    116117        default: 
    117118                *str = "500 Unknown error"; 
     
    144145                entry_code (method_not_allowed); 
    145146                entry_code (length_required); 
     147                entry_code (request_entity_too_large); 
    146148                entry_code (request_uri_too_long); 
    147149                entry_code (range_not_satisfiable); 
  • cherokee/trunk/contrib/05to06.py

    r631 r632  
    6464                       'sslcertificatekeyfile': 'ssl_certificate_key_file', 
    6565                       'sslcalistfile':         'ssl_cal_list_file', 
    66                        'directoryindex':        'directory_index' 
     66                       'directoryindex':        'directory_index', 
     67                       'scriptalias':           'script_alias' 
    6768                       } 
    6869