Changeset 1853
- Timestamp:
- 08/17/08 19:09:51 (3 months ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/connection.c (modified) (2 diffs)
- cherokee/trunk/cherokee/handler.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1852 r1853 1 1 2008-08-17 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 3 * cherokee/handler.h, cherokee/connection.c: Slightly improves the 4 chunked encoding support. 2 5 3 6 * cherokee/buffer.c (cherokee_buffer_convert_to_chunked): Added cherokee/trunk/cherokee/connection.c
r1838 r1853 487 487 cherokee_buffer_add_buffer (buffer, &CONN_SRV(conn)->timeout_header); 488 488 489 } else if (conn->handler && 490 HANDLER_SUPPORTS (conn->handler, hsupport_chunked)) { 491 cherokee_buffer_add_str (buffer, "Transfer-Encoding: chunked" CRLF); 492 489 493 } else { 490 494 cherokee_buffer_add_str (buffer, "Connection: close"CRLF); … … 573 577 } 574 578 575 if (HANDLER_SUPPORTS (conn->handler, hsupport_length) == 0) 579 580 if ((! HANDLER_SUPPORTS (conn->handler, hsupport_length)) && 581 (! HANDLER_SUPPORTS (conn->handler, hsupport_chunked))) 582 { 576 583 conn->keepalive = 0; 584 } 577 585 } 578 586 cherokee/trunk/cherokee/handler.h
r1433 r1853 49 49 hsupport_length = 1, /* Knows the length. Eg: for keep-alive */ 50 50 hsupport_maybe_length = 1 << 1, /* It might include content-length */ 51 hsupport_range = 1 << 2, /* Can handle "Range: bytes=" requests */ 52 hsupport_error = 1 << 3, /* It is an error handler */ 53 hsupport_full_headers = 1 << 4, /* Handler adds the full header stack */ 54 hsupport_skip_headers = 1 << 5 /* The server shouldn't add any headers */ 51 hsupport_chunked = 1 << 2, /* Support Chunked transfer encoding */ 52 hsupport_range = 1 << 3, /* Can handle "Range: bytes=" requests */ 53 hsupport_error = 1 << 4, /* It is an error handler */ 54 hsupport_full_headers = 1 << 5, /* Handler adds the full header stack */ 55 hsupport_skip_headers = 1 << 6 /* The server shouldn't add any headers */ 55 56 } cherokee_handler_support_t; 56 57