Changeset 1434

Show
Ignore:
Timestamp:
05/17/08 15:54:24 (2 months ago)
Author:
alo
Message:

--

Files:

Legend:

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

    r1433 r1434  
    112008-05-17  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/handler_proxy.c (cherokee_handler_proxy_add_headers): 
     4        It had to pass the downloader HTTP error code to the Cherokee 
     5        client. Now, non-200 responses work properly. 
    26 
    37        * downloader.c, downloader.h, handler.h, handler_proxy.c, 
  • cherokee/trunk/cherokee/handler_proxy.c

    r1433 r1434  
    255255                                    cherokee_buffer_t        *buffer) 
    256256{ 
    257         ret_t              ret;  
    258         char              *begin; 
    259         char              *end;  
    260         cuint_t            nl_len; 
    261         cherokee_boolean_t rw; 
    262         cuint_t            skip         = 0; 
    263         cherokee_buffer_t *reply_header = NULL; 
    264         cherokee_thread_t *thread       = HANDLER_THREAD(HDL_PROXY_HANDLER(phdl)); 
    265         cherokee_buffer_t *tmp1         = THREAD_TMP_BUF1(thread); 
    266         cherokee_buffer_t *tmp2         = THREAD_TMP_BUF2(thread); 
     257        ret_t                  ret;  
     258        char                  *begin; 
     259        char                  *end;  
     260        cuint_t                nl_len; 
     261        cherokee_boolean_t     rw; 
     262        cuint_t                skip         = 0; 
     263        cherokee_buffer_t     *reply_header = NULL; 
     264        cherokee_thread_t     *thread       = HANDLER_THREAD(HDL_PROXY_HANDLER(phdl)); 
     265        cherokee_buffer_t     *tmp1         = THREAD_TMP_BUF1(thread); 
     266        cherokee_buffer_t     *tmp2         = THREAD_TMP_BUF2(thread); 
     267        cherokee_connection_t *conn         = HANDLER_CONN(phdl); 
    267268 
    268269        /* Get the header 
     
    300301                 */ 
    301302                cherokee_buffer_add (buffer, begin, reply_header->len - skip); 
     303                 
     304                /* And set the original HTTP error value 
     305                 */ 
     306                cherokee_downloader_get_reply_code (&phdl->downloader, &conn->error_code); 
    302307                return ret_ok; 
    303308        }