As expected, now the changes to properly handle the RAW_DATA blocs were
performed, the h1_make_tunnel() function is updated to only handle RAW_DATA
blocks.
*/
if (!b_data(&h1c->obuf) &&
htx_nbblks(htx) == 1 &&
- htx_is_data_type(htx_get_blk_type(blk)) &&
+ htx_get_blk_type(blk) == HTX_BLK_RAW_DATA &&
htx_get_blksz(blk) == count &&
b_size(&h1c->obuf) == b_size(buf)) {
void *old_area;
sz = htx_get_blksz(blk);
vlen = sz;
- if (htx_is_data_type(type)) {
+ if (type == HTX_BLK_RAW_DATA) {
if (vlen > count) {
/* Get the maximum amount of data we can xferred */
vlen = count;