File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -271,6 +271,7 @@ fh_autoindex_handle_chunked (struct fh_autoindex *autoindex)
271271 "</tr>\r\n" ;
272272
273273 link -> buf = (struct fh_buf * ) (link + 1 );
274+ link -> buf -> type = FH_BUF_DATA ;
274275 link -> buf -> attrs .mem .data = (uint8_t * ) data ;
275276 link -> buf -> attrs .mem .cap = link -> buf -> attrs .mem .len
276277 = sizeof (data ) - 1 ;
@@ -510,7 +511,6 @@ fh_autoindex_handle_plain (struct fh_autoindex *autoindex)
510511 }
511512
512513 link -> buf = (struct fh_buf * ) (link + 1 );
513- link -> buf -> type = FH_BUF_DATA ;
514514 link -> buf -> attrs .mem .data = (uint8_t * ) data ;
515515 link -> buf -> attrs .mem .len = link -> buf -> attrs .mem .cap
516516 = sizeof (data ) - 1 ;
@@ -563,6 +563,7 @@ fh_autoindex_handle_plain (struct fh_autoindex *autoindex)
563563 content_length += entry_len ;
564564 }
565565
566+ link -> buf -> type = FH_BUF_DATA ;
566567 link -> is_eos = false;
567568 link -> is_start = false;
568569
You can’t perform that action at this time.
0 commit comments