From cdb7db74d48953e40a24cc4526a20b9e20853b6c Mon Sep 17 00:00:00 2001 From: Bo Date: Thu, 1 Aug 2024 22:09:26 +0100 Subject: [PATCH] fix introduced bug --- fio-stl.h | 2 +- fio-stl/431 http handle.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fio-stl.h b/fio-stl.h index 778c359..1d69fe3 100644 --- a/fio-stl.h +++ b/fio-stl.h @@ -38160,7 +38160,7 @@ FIO_SFUNC int fio____http_write_start(fio_http_s *h, if (h->status) { if (args->len && fio___http_response_etag_if_none_match(h)) return -1; - if (!args->len && args->finish) { + if (!args->len && args->finish && h->status >= 400) { fio_http_send_error_response(h, h->status); return 0; } diff --git a/fio-stl/431 http handle.h b/fio-stl/431 http handle.h index b7dc397..51da045 100644 --- a/fio-stl/431 http handle.h +++ b/fio-stl/431 http handle.h @@ -2127,7 +2127,7 @@ FIO_SFUNC int fio____http_write_start(fio_http_s *h, if (h->status) { if (args->len && fio___http_response_etag_if_none_match(h)) return -1; - if (!args->len && args->finish) { + if (!args->len && args->finish && h->status >= 400) { fio_http_send_error_response(h, h->status); return 0; }