This commit is contained in:
Kamil Trzcinski
2022-04-08 14:24:51 +02:00
parent 740bbba104
commit 45724981ad
2 changed files with 17 additions and 1 deletions

View File

@ -26,6 +26,10 @@ static void http_write_response(
void http_content(http_worker_t *worker, FILE *stream)
{
if (worker->current_method) {
if (worker->current_method->content_lengthp) {
worker->current_method->content_length = *worker->current_method->content_lengthp;
}
http_write_response(stream,
NULL,
worker->current_method->content_type,