Changeset 1434
- Timestamp:
- 05/17/08 15:54:24 (2 months ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/handler_proxy.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1433 r1434 1 1 2008-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. 2 6 3 7 * downloader.c, downloader.h, handler.h, handler_proxy.c, cherokee/trunk/cherokee/handler_proxy.c
r1433 r1434 255 255 cherokee_buffer_t *buffer) 256 256 { 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); 267 268 268 269 /* Get the header … … 300 301 */ 301 302 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); 302 307 return ret_ok; 303 308 }